ReactOS 0.4.15-dev-7842-g558ab78
seh0044.c File Reference
#include <windows.h>
#include "seh.h"
Include dependency graph for seh0044.c:

Go to the source code of this file.

Functions

int main ()
 

Variables

char test [] = "SEH0044.c"
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 10 of file seh0044.c.

10 {
11 ULONG Index1;
12 ULONG Index2 = 1;
14
15 Counter = 0;
16 Index1 = 1;
17
18 switch (Index2) {
19 case 0:
20 /* since Index2 starts as 1, should never get here */
21 Counter += 100;
22 break;
23 case 1:
24 try {
25 if ((Index1 & 0x1) == 1) {
26 /*
27 * break out of switch stmt.
28 * leaving COunter as 0
29 */
30 break;
31 } else {
32 Counter += 1;
33 }
34 }
35 except(1)
36 /* never gets here. No exception occurs */
37 {
38 Counter += 40;
39 }
40 endtry
41 Counter += 2;
42 break;
43 }
44
45 if (Counter != 0) {
46 printf("TEST 44 FAILED. Counter = %d\n\r", Counter);
47 return -1;
48 }
49
50 return 0;
51}
#define except(x)
Definition: btrfs_drv.h:136
#define printf
Definition: freeldr.h:93
long LONG
Definition: pedump.c:60
#define endtry
Definition: seh.h:24
static LARGE_INTEGER Counter
Definition: clock.c:43
uint32_t ULONG
Definition: typedefs.h:59

Variable Documentation

◆ test

char test[] = "SEH0044.c"

Definition at line 8 of file seh0044.c.