mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
This commit is contained in:
5
test/stdlib/llvm-support-odr-violation-static.test-sh
Normal file
5
test/stdlib/llvm-support-odr-violation-static.test-sh
Normal file
@@ -0,0 +1,5 @@
|
||||
// RUN: %llvm-nm --defined-only -C %target-static-stdlib-path/libswiftCore.a | %FileCheck --allow-empty %s
|
||||
// CHECK-NOT: [^:]llvm::
|
||||
|
||||
// REQUIRES: OS=linux-gnu
|
||||
// REQUIRES: static_stdlib
|
||||
Reference in New Issue
Block a user