ReactOS 0.4.15-dev-7906-g1b85a5f
seh0017.c File Reference
#include <windows.h>
#include "seh.h"
Include dependency graph for seh0017.c:

Go to the source code of this file.

Functions

int main ()
 

Variables

char test [] = "SEH0017.c"
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 10 of file seh0017.c.

10 {
11
13
14 Counter = 0;
15
16 try {
17 try {
18 /* set counter = 1 */
19 Counter += 1;
20 }
21 finally {
22 /* set counter = 2 */
23 Counter += 1;
24#if defined(_MSC_VER) && !defined(__clang__)
25 goto t12; /* can't jump into a try/finally */
26#endif
27 }
28 endtry
29
30 t12:
31 ;
32 }
33 finally {
34 /* set counter = 3 */
35 Counter += 1;
36 }
37 endtry
38
39 if (Counter != 3) {
40 printf("TEST 17 FAILED. Counter = %d\n\r", Counter);
41 return -1;
42 }
43
44 return 0;
45}
#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

Variable Documentation

◆ test

char test[] = "SEH0017.c"

Definition at line 8 of file seh0017.c.