llvm-project/compiler-rt/test/fuzzer/uncaught-exception.test

9 lines
325 B
Plaintext

# Test that throws a C++ exception and doesn't catch it. Should result in a
# crash
RUN: %cpp_compiler %S/UncaughtException.cpp -o %t-UncaughtException
RUN: ASAN_OPTIONS=allocator_may_return_null=1 not %run %t-UncaughtException 2>&1 | FileCheck %s
CHECK: ERROR: libFuzzer: deadly signal
CHECK: Test unit written to ./crash