ReactOS  0.4.15-dev-2704-gd5265b0
seh0035.c File Reference
#include <windows.h>
#include "seh.h"
Include dependency graph for seh0035.c:

Go to the source code of this file.

Macros

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

Functions

int main ()
 

Variables

char test [] = "SEH0035.c"
 
int perfect
 

Macro Definition Documentation

◆ faill

#define faill ( )

Definition at line 8 of file seh0035.c.

◆ finish

#define finish ( )

Definition at line 10 of file seh0035.c.

◆ startest

#define startest ( )

Definition at line 9 of file seh0035.c.

Function Documentation

◆ main()

int main ( void  )

Definition at line 15 of file seh0035.c.

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

Variable Documentation

◆ perfect

int perfect

Definition at line 13 of file seh0035.c.

◆ test

char test[] = "SEH0035.c"

Definition at line 12 of file seh0035.c.