1// RUN: %clangxx -fexceptions -fPIC -c -o %t %s
2// RUN: %llvm_jitlink %t
3
4extern "C" void llvm_jitlink_setTestResultOverride(long Value);
5
6int main(int argc, char *argv[]) {
7 llvm_jitlink_setTestResultOverride(Value: 1);
8 try {
9 throw 0;
10 } catch (int X) {
11 llvm_jitlink_setTestResultOverride(Value: X);
12 }
13 return 0;
14}
15

source code of compiler-rt/test/orc/TestCases/Linux/ppc64/ehframe-default.cpp