ReactOS
0.4.16-dev-306-g647d351
seh0054.c
Go to the documentation of this file.
1
// Copyright (c) Microsoft. All rights reserved.
2
// Licensed under the MIT license. See LICENSE file in the project root for
3
// full license information.
4
5
#include <windows.h>
6
#include "
seh.h
"
7
8
char
test
[] =
"seh0054.c"
;
9
10
LONG
Echo
(
LONG
Value
) {
return
Value
; }
11
12
int
main
() {
13
LONG
Counter
;
14
15
Counter
= 0;
16
17
try
{
18
try
{
19
if
(
Echo
(
Counter
) ==
Counter
) {
20
Counter
+= 3;
21
leave
;
22
23
}
else
{
24
Counter
+= 100;
25
}
26
}
27
finally
{
28
if
(
abnormal_termination
() ==
FALSE
) {
29
Counter
+= 5;
30
}
31
}
32
endtry
33
34
if
(
Echo
(
Counter
) ==
Counter
) {
35
Counter
+= 3;
36
leave
;
37
38
}
else
{
39
Counter
+= 100;
40
}
41
}
42
finally
{
43
if
(
abnormal_termination
() ==
FALSE
) {
44
Counter
+= 5;
45
}
46
}
47
endtry
48
49
if
(
Counter
!= 16) {
50
printf
(
"TEST 54 FAILED, Counter = %d\n"
,
Counter
);
51
return
-1;
52
}
53
54
return
0;
55
}
leave
#define leave
Definition:
btrfs_drv.h:138
FALSE
#define FALSE
Definition:
types.h:117
printf
#define printf
Definition:
freeldr.h:97
LONG
long LONG
Definition:
pedump.c:60
test
char test[]
Definition:
seh0054.c:8
main
int main()
Definition:
seh0054.c:12
seh.h
endtry
#define endtry
Definition:
seh.h:24
abnormal_termination
#define abnormal_termination
Definition:
seh.h:25
Counter
static LARGE_INTEGER Counter
Definition:
clock.c:43
Echo
@ Echo
Definition:
telnetd.h:64
Value
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition:
wdfregistry.h:413
modules
rostests
apitests
compiler
ms
seh
seh0054.c
Generated on Mon Dec 2 2024 06:09:04 for ReactOS by
1.9.6