1 | // RUN: %clangxx -fexceptions -fPIC -c -o %t %s |
---|---|
2 | // RUN: %llvm_jitlink %t |
3 | |
4 | extern "C"void llvm_jitlink_setTestResultOverride(long Value); |
5 | |
6 | int 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 |