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