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

Go to the source code of this file.

Functions

int main ()
 

Variables

char test [] = "SEH0050.c"
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 10 of file seh0050.c.

10  {
11  ULONG Index1;
12  ULONG Index2 = 1;
13  LONG Counter;
14 
15  Counter = 0;
16  Index1 = 1;
17 
18  switch (Index2) {
19  case 0:
20  Counter += 100;
21  break;
22  case 1:
23  try {
24  try {
25  if ((Index1 & 0x1) == 1) {
26  Counter += 1;
27  }
28  }
29  finally { Counter += 2; } endtry
30  Counter += 4;
31  }
32  finally {
33  Counter += 5;
34 #if defined(_MSC_VER) && !defined(__clang__)
35  break;
36 #endif
37  }
38  endtry
39 #ifndef _MSC_VER
40  break;
41 #endif
42  Counter += 6;
43  }
44 
45  if (Counter != 12) {
46  printf("TEST 50 FAILED. Counter = %d\n\r", Counter);
47  return -1;
48  }
49 
50  return 0;
51 }
#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

Variable Documentation

◆ test

char test[] = "SEH0050.c"

Definition at line 8 of file seh0050.c.