diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2014-11-06 22:49:13 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2014-11-06 22:49:13 +0000 |
commit | 8ef50bf3d1c287b5013c3168de77a462dfce3495 (patch) | |
tree | 3467f3372c1195b1546172d89af2205a50b1866d /lib/ubsan/lit_tests/TestCases/Misc/unreachable.cpp | |
parent | 11023dc647fd8f41418da90d59db138400d0f334 (diff) |
Import compiler-rt release_34 branch r197381.vendor/compiler-rt/compiler-rt-r197381
Diffstat (limited to 'lib/ubsan/lit_tests/TestCases/Misc/unreachable.cpp')
-rw-r--r-- | lib/ubsan/lit_tests/TestCases/Misc/unreachable.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ubsan/lit_tests/TestCases/Misc/unreachable.cpp b/lib/ubsan/lit_tests/TestCases/Misc/unreachable.cpp new file mode 100644 index 000000000000..75fc3e5bd9a6 --- /dev/null +++ b/lib/ubsan/lit_tests/TestCases/Misc/unreachable.cpp @@ -0,0 +1,6 @@ +// RUN: %clangxx -fsanitize=unreachable %s -O3 -o %t && %t 2>&1 | FileCheck %s + +int main(int, char **argv) { + // CHECK: unreachable.cpp:5:3: runtime error: execution reached a __builtin_unreachable() call + __builtin_unreachable(); +} |