See https://github.com/llvm/llvm-project/pull/125924 To match a literal plus sign, it must be escaped with a backslash (`\`).
12 lines
561 B
Plaintext
12 lines
561 B
Plaintext
# Test that throws a C++ exception and doesn't catch it. Should result in a
|
|
# crash
|
|
# FIXME: Get test working on other platforms.
|
|
REQUIRES: windows
|
|
RUN: %cpp_compiler %S/UncaughtException.cpp -o %t-UncaughtException
|
|
|
|
# Clang will fail the test with 'deadly signal', but other compilers may fail with different error messages.
|
|
# For example, msvc fails with 'uncaught C++ exception'. So the error we check depends on the compiler target.
|
|
RUN: not %run %t-UncaughtException 2>&1 | FileCheck %s
|
|
|
|
CHECK: ERROR: libFuzzer: {{deadly signal|uncaught C\+\+ exception}}
|