1// RUN: %clangxx -fPIC -emit-llvm -c -o %t %s
2// RUN: %lli_orc_jitlink -relocation-model=pic %t | FileCheck %s
3
4// CHECK: catch
5
6#include <stdio.h>
7
8int main(int argc, char *argv[]) {
9 try {
10 throw 0;
11 } catch (int X) {
12 puts(s: "catch");
13 }
14 return 0;
15}
16

source code of compiler-rt/test/orc/TestCases/Linux/x86-64/lljit-ehframe.cpp