Skip to content

Commit c68df8f

Browse files
authored
Merge pull request #77870 from antoniofrighetto/feature/reenable-asan-plugin-test
[Frontend] Re-enable ASAN builds support in `load-pass-plugin` test (NFC)
2 parents b31b90d + d30af4c commit c68df8f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/Frontend/load-pass-plugin.swift

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
// REQUIRES: OS=macosx
22

3-
// This test fails under ASAN because of an ODR violation (which is strictly
4-
// speaking a bug: https://github.com/swiftlang/swift/issues/77771). Disable
5-
// for ASAN until it's fixed.
6-
// UNSUPPORTED: asan
7-
83
// RUN: %target-swift-frontend -load-pass-plugin=nonexistent.dylib %s -emit-ir -o /dev/null 2>&1 | %FileCheck -check-prefix=CHECK-UNABLE-LOAD %s
94
// CHECK-UNABLE-LOAD: error: unable to load plugin 'nonexistent.dylib': 'Could not load library{{.*}}'
105

116
// RUN: %empty-directory(%t)
127
// RUN: %target-clangxx %S/Inputs/TestPlugin.cpp -std=c++17 -stdlib=libc++ \
13-
// RUN: -isysroot %sdk -I %llvm_src_root/include -I %llvm_obj_root/include -L %llvm_obj_root/lib -lLLVMSupport \
14-
// RUN: -Wl,-undefined -Wl,suppress -Wl,-flat_namespace \
8+
// RUN: -isysroot %sdk -I %llvm_src_root/include -I %llvm_obj_root/include -L %llvm_obj_root/lib \
9+
// RUN: -Wl,-hidden-lLLVMSupport -Wl,-undefined -Wl,dynamic_lookup -Wl,-flat_namespace \
1510
// RUN: -dynamiclib -o %t/libTestPlugin.dylib
1611

1712
// RUN: %target-swift-frontend -load-pass-plugin=%t/libTestPlugin.dylib %s -emit-ir -o /dev/null 2>&1 | %swift-demangle | %FileCheck %s

0 commit comments

Comments
 (0)