diff options
author | Vitaly Buka <vitalybuka@google.com> | 2019-10-09 20:22:14 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2019-10-09 20:22:14 +0000 |
commit | 39f759189d51ea32e3010772e4e1409b62aa7ef9 (patch) | |
tree | 807c7c36ebe670b885e51625898f74cea08f21b9 | |
parent | c7cfa7c34e3ea9aa20288d2475ccb2ca85730605 (diff) | |
download | bcm5719-llvm-39f759189d51ea32e3010772e4e1409b62aa7ef9.tar.gz bcm5719-llvm-39f759189d51ea32e3010772e4e1409b62aa7ef9.zip |
[sanitizer] Make signal_name a C test
llvm-svn: 374213
-rw-r--r-- | compiler-rt/test/sanitizer_common/TestCases/Linux/signal_name.c (renamed from compiler-rt/test/sanitizer_common/TestCases/Linux/signal_name.cpp) | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_name.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_name.c index 1842dc72106..e29cb1e7303 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_name.cpp +++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_name.c @@ -1,4 +1,4 @@ -// RUN: %clangxx -O1 %s -o %t +// RUN: %clang -O1 %s -o %t // RUN: %env_tool_opts=handle_sigfpe=2 not %run %t 0 2>&1 | FileCheck %s -DSIGNAME=FPE // RUN: %env_tool_opts=handle_sigill=2 not %run %t 1 2>&1 | FileCheck %s -DSIGNAME=ILL // RUN: %env_tool_opts=handle_abort=2 not %run %t 2 2>&1 | FileCheck %s -DSIGNAME=ABRT @@ -10,7 +10,8 @@ #include <stdlib.h> int main(int argc, char **argv) { - if (argc != 2) return 0; + if (argc != 2) + return 0; int signals[] = {SIGFPE, SIGILL, SIGABRT, SIGSEGV, SIGBUS, SIGTRAP}; raise(signals[atoi(argv[1])]); } |