Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / fuzzer / fork-ubsan.test
blob2d68b72fe6bbc619c359b2ee6dad1df01fe510b0
1 # UNSUPPORTED: darwin, target={{.*freebsd.*}}, target=aarch64{{.*}}
2 # Tests how the fork mode works together with ubsan.
3 RUN: %cpp_compiler %S/IntegerOverflowTest.cpp -o %t-IntegerOverflowTest -fsanitize=signed-integer-overflow -fno-sanitize-recover=signed-integer-overflow
4 RUN: not %run %t-IntegerOverflowTest -fork=1 -ignore_crashes=1  -runs=10000 2>&1 | FileCheck %s --check-prefix=UBSAN_FORK
5 UBSAN_FORK: runtime error: signed integer overflow: 1073741824 + 1073741824 cannot be represented in type 'int'
6 UBSAN_FORK: INFO: fuzzed for {{.*}} iterations, wrapping up soon