Skip to content

Commit 171405a

Browse files
committed
test: add a ODR violation check for the static standard library
The static version of the standard library was leaking symbols in the `llvm::` namespace which would result in ODR violations were the artifact linking against `LLVMSupport` (via another dependency). In particular, `llvm::SmallVector` and `llvm::StringSwitch` symbols were being leaked. This adds a test case specifically for the static variant of the library. The dynamic variant of the library is already tested in a separate test.
1 parent 98fd1b2 commit 171405a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: %llvm-nm --defined-only -C %platform-module-dir/libswiftCore.a | %FileCheck --allow-empty %s
2+
// CHECK-NOT: [^:]llvm::
3+
4+
// REQUIRES: OS=linux-gnu
5+
// REQUIRES: static_stdlib

0 commit comments

Comments
 (0)