ReactOS 0.4.15-dev-7942-gd23573b
seh0002.c
Go to the documentation of this file.
1// Copyright (c) Microsoft. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for
3// full license information.
4
5#include <windows.h>
6#include "seh.h"
7
8char test[] = "SEH0002.c";
9
10int main() {
11
13
14 Counter = 0;
15
16 try {
17 Counter += 1;
18 }
20 /*
21 * counter should be positive indicating "EXECUTE HANDLER"
22 * but should never get here as no exception is raised
23 */
24 {
25 Counter += 1;
26 }
27 endtry
28
29 if (Counter != 1) {
30 printf("TEST 2 FAILED. Counter = %d\n\r", Counter);
31 return -1;
32 }
33
34 return 0;
35}
#define except(x)
Definition: btrfs_drv.h:136
#define printf
Definition: freeldr.h:97
long LONG
Definition: pedump.c:60
char test[]
Definition: seh0002.c:8
int main()
Definition: seh0002.c:10
#define endtry
Definition: seh.h:24
static LARGE_INTEGER Counter
Definition: clock.c:43