diff options
Diffstat (limited to 'test/sanitizer_common/TestCases/Posix/fpe.cc')
| -rw-r--r-- | test/sanitizer_common/TestCases/Posix/fpe.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/sanitizer_common/TestCases/Posix/fpe.cc b/test/sanitizer_common/TestCases/Posix/fpe.cc index 9a6f808a5cd7..c1e785a7ae82 100644 --- a/test/sanitizer_common/TestCases/Posix/fpe.cc +++ b/test/sanitizer_common/TestCases/Posix/fpe.cc @@ -1,13 +1,9 @@ // Test the handle_sigfpe option. -// RUN: %clang %s -o %t +// RUN: %clangxx %s -o %t // RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK1 %s // RUN: %env_tool_opts=handle_sigfpe=0 not --crash %run %t 2>&1 | FileCheck --check-prefix=CHECK0 %s // RUN: %env_tool_opts=handle_sigfpe=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK1 %s -// FIXME: implement in other sanitizers, not just asan. -// XFAIL: msan -// XFAIL: lsan -// XFAIL: tsan -// + // FIXME: seems to fail on ARM // REQUIRES: x86_64-target-arch #include <assert.h> @@ -25,6 +21,9 @@ int main(int argc, char **argv) { volatile int sink; sink = one / zero; } -// CHECK1: ERROR: {{.*}}Sanitizer: + +// CHECK0-NOT: Sanitizer:DEADLYSIGNAL +// CHECK1: ERROR: {{.*}}Sanitizer: FPE +// CHECK1: {{#[0-9]+.* main .*fpe\.cc}}:[[@LINE-5]] // CHECK1: DEATH CALLBACK // CHECK0-NOT: Sanitizer |
