diff options
author | Vitaly Buka <vitalybuka@google.com> | 2017-11-11 01:01:09 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2017-11-11 01:01:09 +0000 |
commit | 716e40646c229c0595af4eda8c8f80bcb3272780 (patch) | |
tree | b57361c11edf1245cad9cbca809a6927451aa4ad /test | |
parent | fafe99a2520ba9236e527b136e82500e04ec9cbc (diff) |
[ubsan] Fix ubsan tests broken by linking as C instead of C++
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@317958 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/sanitizer_common/TestCases/Linux/ill.cc | 5 | ||||
-rw-r--r-- | test/sanitizer_common/TestCases/Posix/fpe.cc | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/test/sanitizer_common/TestCases/Linux/ill.cc b/test/sanitizer_common/TestCases/Linux/ill.cc index 47a278387..02ace10b9 100644 --- a/test/sanitizer_common/TestCases/Linux/ill.cc +++ b/test/sanitizer_common/TestCases/Linux/ill.cc @@ -1,7 +1,7 @@ // Test the handle_sigill option. // clang-format off -// RUN: %clang %s -o %t -O1 +// RUN: %clangxx %s -o %t -O1 // RUN: not --crash %run %t 2>&1 | FileCheck --check-prefix=CHECK0 %s // RUN: %env_tool_opts=handle_sigill=0 not --crash %run %t 2>&1 | FileCheck --check-prefix=CHECK0 %s // RUN: %env_tool_opts=handle_sigill=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK1 %s @@ -9,8 +9,7 @@ // FIXME: implement in other sanitizers. // XFAIL: tsan -// XFAIL: ubsan -// + // FIXME: seems to fail on ARM // REQUIRES: x86_64-target-arch #include <assert.h> diff --git a/test/sanitizer_common/TestCases/Posix/fpe.cc b/test/sanitizer_common/TestCases/Posix/fpe.cc index 4f887b5f1..ea9949680 100644 --- a/test/sanitizer_common/TestCases/Posix/fpe.cc +++ b/test/sanitizer_common/TestCases/Posix/fpe.cc @@ -1,12 +1,12 @@ // 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: tsan -// XFAIL: ubsan -// + // FIXME: seems to fail on ARM // REQUIRES: x86_64-target-arch #include <assert.h> |