ReactOS  0.4.15-dev-5112-g22d8c0f
seh0034.c File Reference
#include <windows.h>
#include "seh.h"
Include dependency graph for seh0034.c:

Go to the source code of this file.

Macros

#define faill()
 
#define startest()
 
#define finish()
 

Functions

int main ()
 

Variables

char test [] = "SEH0034.c"
 

Macro Definition Documentation

◆ faill

#define faill ( )

Definition at line 8 of file seh0034.c.

◆ finish

#define finish ( )

Definition at line 10 of file seh0034.c.

◆ startest

#define startest ( )

Definition at line 9 of file seh0034.c.

Function Documentation

◆ main()

int main ( void  )

Definition at line 14 of file seh0034.c.

14  {
15  ULONG Index1;
16  LONG Counter;
17 
18  startest();
19 
20  Counter = 0;
21 
22  for (Index1 = 0; Index1 < 10; Index1 += 1) {
23  try {
24  if ((Index1 & 0x1) == 0) {
25  /* add 1 to counter if Index1 is odd */
26  Counter += 1;
27  }
28  }
29  finally {
30  /* add 2 to counter always */
31  Counter += 2;
32 #if defined(_MSC_VER) && !defined(__clang__)
33  continue;
34 #endif
35  }
36  endtry
37  /* never gets executed due to continue in finally */
38  Counter += 4;
39  }
40 
41  if (Counter != 25) {
42  printf("TEST 34 FAILED. Counter = %d\n\r", Counter);
43  return -1;
44  }
45 
46  return 0;
47 }
#define endtry
Definition: seh.h:24
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3706
long LONG
Definition: pedump.c:60
#define printf
Definition: freeldr.h:94
static LARGE_INTEGER Counter
Definition: clock.c:43
unsigned int ULONG
Definition: retypes.h:1
#define startest()
Definition: seh0034.c:9

Variable Documentation

◆ test

char test[] = "SEH0034.c"

Definition at line 12 of file seh0034.c.