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 | 6e2db02a1839370609d08ea0135de7eead7f1135 (patch) | |
tree | dc39cf8f4ce9faff49f5ea82f0bf5530474f553e | |
parent | 2e6a8f1ebd7896db3546ac66bb6693d8be46ade9 (diff) | |
download | compiler-rt-6e2db02a1839370609d08ea0135de7eead7f1135.tar.gz |
[sanitizer] Make signal_name a C test
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@374213 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/sanitizer_common/TestCases/Linux/signal_name.c (renamed from test/sanitizer_common/TestCases/Linux/signal_name.cpp) | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/sanitizer_common/TestCases/Linux/signal_name.cpp b/test/sanitizer_common/TestCases/Linux/signal_name.c index 1842dc721..e29cb1e73 100644 --- a/test/sanitizer_common/TestCases/Linux/signal_name.cpp +++ b/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])]); } |