diff options
| -rw-r--r-- | compiler-rt/test/asan/TestCases/Linux/function-sections-are-bad.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler-rt/test/asan/TestCases/Linux/function-sections-are-bad.cc b/compiler-rt/test/asan/TestCases/Linux/function-sections-are-bad.cc index cccd6ca1c52..0bbeb3990bf 100644 --- a/compiler-rt/test/asan/TestCases/Linux/function-sections-are-bad.cc +++ b/compiler-rt/test/asan/TestCases/Linux/function-sections-are-bad.cc @@ -1,9 +1,11 @@ // Check that --gc-sections does not throw away (or localize) parts of sanitizer // interface. -// RUN: %clang_asan -m64 %s -Wl,--gc-sections -o %t -// RUN: %clang_asan -m64 %s -DBUILD_SO -fPIC -o %t-so.so -shared +// RUN: %clang_asan %s -Wl,--gc-sections -o %t +// RUN: %clang_asan %s -DBUILD_SO -fPIC -o %t-so.so -shared // RUN: %t 2>&1 +// REQUIRES: asan-64-bits + #ifndef BUILD_SO #include <assert.h> #include <dlfcn.h> @@ -30,7 +32,7 @@ int main(int argc, char *argv[]) { #else // BUILD_SO -#include <sanitizer/msan_interface.h> +#include <sanitizer/asan_interface.h> extern "C" void call_rtl_from_dso() { volatile int32_t x; volatile int32_t y = __sanitizer_unaligned_load32((void *)&x); |

