xref: /llvm-project/compiler-rt/test/fuzzer/libcxx.test (revision e9640afddd3b6fb7567408a380c9652a18d60a82)
1# Ensures that the libFuzzer library does not export exceptions.
2REQUIRES: linux
3
4RUN: %cpp_compiler %S/SimpleTest.cpp -o %t
5RUN: nm %t 2>&1 | FileCheck %s
6
7CHECK-NOT: t __cxa_allocate_dependent_exception
8CHECK-NOT: t __cxa_allocate_exception
9CHECK-NOT: t __cxa_begin_catch
10CHECK-NOT: t __cxa_call_unexpected
11CHECK-NOT: t __cxa_current_exception_type
12CHECK-NOT: t __cxa_end_catch
13CHECK-NOT: t __cxa_free_dependent_exception
14CHECK-NOT: t __cxa_free_exception
15CHECK-NOT: t __cxa_get_exception_ptr
16CHECK-NOT: t __cxa_throw
17