llvm-project/lld/test/pecoff/Inputs/seh.c

14 lines
169 B
C

__declspec(noinline) void triggerSEH() {
volatile int *p = 0;
*p = 1;
}
int main() {
__try {
triggerSEH();
} __except(1) {
return 42;
}
return 0;
}