ReactOS
0.4.16-dev-336-gb667d82
seh0052.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
[] =
"seh0052.c"
;
9
10
LONG
Echo
(
LONG
Value
) {
return
Value
; }
11
12
int
main
() {
13
LONG
Counter
;
14
ULONG
Index1;
15
16
Counter
= 0;
17
18
try
{
19
for
(Index1 = 0; Index1 < 10; Index1 += 1) {
20
if
(
Echo
(Index1) == Index1) {
21
Counter
+= 3;
22
leave
;
23
}
24
Counter
+= 100;
25
}
26
}
27
finally
{
28
if
(
AbnormalTermination
() == 0) {
29
Counter
+= 5;
30
}
31
}
32
endtry
33
34
if
(
Counter
!= 8) {
35
printf
(
"TEST 52 FAILED, Counter = %d\n"
,
Counter
);
36
return
-1;
37
}
38
39
return
0;
40
}
leave
#define leave
Definition:
btrfs_drv.h:138
printf
#define printf
Definition:
freeldr.h:97
AbnormalTermination
#define AbnormalTermination
Definition:
excpt.h:87
LONG
long LONG
Definition:
pedump.c:60
test
char test[]
Definition:
seh0052.c:8
main
int main()
Definition:
seh0052.c:12
seh.h
endtry
#define endtry
Definition:
seh.h:24
Counter
static LARGE_INTEGER Counter
Definition:
clock.c:43
Echo
@ Echo
Definition:
telnetd.h:64
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
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
seh0052.c
Generated on Tue Dec 10 2024 06:06:46 for ReactOS by
1.9.6