[JITLink][LoongArch] Support R_LARCH_ALIGN relaxation (#122259)
[llvm-project.git] / compiler-rt / test / orc / TestCases / Windows / x86-64 / sehframe-handling.cpp
blob713a4cf516b1ceb7179014e97b8e0bc66080690e
1 // RUN: %clang_cl -EHsc -MD -c -o %t %s
2 // RUN: %llvm_jitlink %t
4 extern "C" __declspec(dllimport) void llvm_jitlink_setTestResultOverride(
5 long Value);
7 int main(int argc, char *argv[]) {
8 llvm_jitlink_setTestResultOverride(1);
9 try {
10 throw 0;
11 } catch (int X) {
12 llvm_jitlink_setTestResultOverride(X);
14 return 0;