xref: /llvm-project/compiler-rt/test/orc/TestCases/FreeBSD/x86-64/lljit-ehframe.cpp (revision 1aa71f8679e439db651c06e8e68ef21e6deffa93)
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 
main(int argc,char * argv[])8 int main(int argc, char *argv[]) {
9   try {
10     throw 0;
11   } catch (int X) {
12     puts("catch");
13   }
14   return 0;
15 }
16