diff options
Diffstat (limited to 'test/pecoff/Inputs/seh.c')
-rw-r--r-- | test/pecoff/Inputs/seh.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/pecoff/Inputs/seh.c b/test/pecoff/Inputs/seh.c new file mode 100644 index 0000000000000..b1c139a58f229 --- /dev/null +++ b/test/pecoff/Inputs/seh.c @@ -0,0 +1,13 @@ +__declspec(noinline) void triggerSEH() { + volatile int *p = 0; + *p = 1; +} + +int main() { + __try { + triggerSEH(); + } __except(1) { + return 42; + } + return 0; +} |