summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/fuzzer-ubsan.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Fuzzer/test/fuzzer-ubsan.test')
-rw-r--r--llvm/lib/Fuzzer/test/fuzzer-ubsan.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/test/fuzzer-ubsan.test b/llvm/lib/Fuzzer/test/fuzzer-ubsan.test
index 0e8ad6c94a1..adb2dfab3d4 100644
--- a/llvm/lib/Fuzzer/test/fuzzer-ubsan.test
+++ b/llvm/lib/Fuzzer/test/fuzzer-ubsan.test
@@ -1,4 +1,5 @@
-RUN: not LLVMFuzzer-SignedIntOverflowTest-Ubsan 2>&1 | FileCheck %s
+RUN: %cpp_compiler -fsanitize=undefined -fno-sanitize-recover=all %S/SignedIntOverflowTest.cpp -o %t-LLVMFuzzer-SignedIntOverflowTest-Ubsan
+RUN: not %t-LLVMFuzzer-SignedIntOverflowTest-Ubsan 2>&1 | FileCheck %s
CHECK: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
CHECK: Test unit written to ./crash-
OpenPOWER on IntegriCloud