diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:05:08 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:05:08 +0000 |
| commit | 0646903fc1f75f6e605754621119473ee083f4a4 (patch) | |
| tree | 57bce79a7423a054cccec23bdf6cd96e2d271b4a /test/asan/TestCases/Linux/odr_c_test.c | |
| parent | 005b7ed8f76756d94ef6266ded755ab7863cb936 (diff) | |
Notes
Diffstat (limited to 'test/asan/TestCases/Linux/odr_c_test.c')
| -rw-r--r-- | test/asan/TestCases/Linux/odr_c_test.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/asan/TestCases/Linux/odr_c_test.c b/test/asan/TestCases/Linux/odr_c_test.c index b1d23493b5704..c1423ed30b1b3 100644 --- a/test/asan/TestCases/Linux/odr_c_test.c +++ b/test/asan/TestCases/Linux/odr_c_test.c @@ -1,13 +1,11 @@ // Test that we can properly report an ODR violation // between an instrumented global and a non-instrumented global. -// RUN: %clang_asan %s -fPIC -shared -o %t-1.so -DFILE1 -// RUN: %clang_asan %s -fPIC -shared -o %t-2.so -DFILE2 -// RUN: %clang_asan %s -fPIE %t-1.so %t-2.so -Wl,-R`pwd` -o %t +// RUN: %clang_asan %s -fPIC -shared -o %dynamiclib1 -DFILE1 +// RUN: %clang_asan %s -fPIC -shared -o %dynamiclib2 -DFILE2 +// RUN: %clang_asan %s -fPIE %ld_flags_rpath_exe1 %ld_flags_rpath_exe2 -o %t // RUN: not %run %t 2>&1 | FileCheck %s // -// REQUIRES: x86_64-target-arch -// // CHECK: The following global variable is not properly aligned. // CHECK: ERROR: AddressSanitizer: odr-violation #if defined(FILE1) |
