ReactOS 0.4.16-dev-340-g0540c21
seh0045.c File Reference
#include <windows.h>
#include "seh.h"
Include dependency graph for seh0045.c:

Go to the source code of this file.

Functions

int main ()
 

Variables

char test [] = "SEH0045.c"
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 10 of file seh0045.c.

10 {
11 ULONG Index1;
12 ULONG Index2 = 1;
14
15 Counter = 0;
16 Index1 = 1;
17
18 switch (Index2) {
19 case 0:
20 /* never gets here, Index2 is 1 */
21 Counter += 100;
22 break;
23 case 1:
24 try {
25 if ((Index1 & 0x1) == 1) {
26 /* break out of switch stmt */
27 break;
28 } else {
29 Counter += 1;
30 }
31 }
32 finally {
33 /*
34 * set counter to 2 after "break"
35 * in 'case 1'
36 */
37 Counter += 2;
38 }
39 endtry
40 Counter += 3;
41 }
42
43 if (Counter != 2) {
44 printf("TEST 45 FAILED. Counter = %d\n\r", Counter);
45 return -1;
46 }
47
48 return 0;
49}
#define printf
Definition: freeldr.h:97
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[] = "SEH0045.c"

Definition at line 8 of file seh0045.c.