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