[compiler-rt] r314057 - [ubsan] Fix assert.cc test by compiling it as C++

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 22 22:09:45 PDT 2017


Author: vitalybuka
Date: Fri Sep 22 22:09:45 2017
New Revision: 314057

URL: http://llvm.org/viewvc/llvm-project?rev=314057&view=rev
Log:
[ubsan] Fix assert.cc test by compiling it as C++

Modified:
    compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/assert.cc

Modified: compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/assert.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/assert.cc?rev=314057&r1=314056&r2=314057&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/assert.cc (original)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/assert.cc Fri Sep 22 22:09:45 2017
@@ -1,7 +1,7 @@
 // Test the handle_abort option.
 
 // clang-format off
-// RUN: %clang %s -o %t
+// RUN: %clangxx %s -o %t
 // RUN:                              not --crash %run %t 2>&1 | FileCheck --check-prefix=CHECK0 %s
 // RUN: %env_tool_opts=handle_abort=0 not --crash %run %t 2>&1 | FileCheck --check-prefix=CHECK0 %s
 // RUN: %env_tool_opts=handle_abort=1 not         %run %t 2>&1 | FileCheck --check-prefix=CHECK1 %s
@@ -10,7 +10,6 @@
 // FIXME: implement in other sanitizers.
 // XFAIL: msan
 // XFAIL: tsan
-// XFAIL: ubsan
 
 #include <assert.h>
 #include <stdio.h>




More information about the llvm-commits mailing list