ReactOS
0.4.16-dev-306-g647d351
seh0017.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
[] =
"SEH0017.c"
;
9
10
int
main
() {
11
12
LONG
Counter
;
13
14
Counter
= 0;
15
16
try
{
17
try
{
18
/* set counter = 1 */
19
Counter
+= 1;
20
}
21
finally
{
22
/* set counter = 2 */
23
Counter
+= 1;
24
#if defined(_MSC_VER) && !defined(__clang__)
25
goto
t12;
/* can't jump into a try/finally */
26
#endif
27
}
28
endtry
29
30
t12:
31
;
32
}
33
finally
{
34
/* set counter = 3 */
35
Counter
+= 1;
36
}
37
endtry
38
39
if
(
Counter
!= 3) {
40
printf
(
"TEST 17 FAILED. Counter = %d\n\r"
,
Counter
);
41
return
-1;
42
}
43
44
return
0;
45
}
printf
#define printf
Definition:
freeldr.h:97
LONG
long LONG
Definition:
pedump.c:60
test
char test[]
Definition:
seh0017.c:8
main
int main()
Definition:
seh0017.c:10
seh.h
endtry
#define endtry
Definition:
seh.h:24
Counter
static LARGE_INTEGER Counter
Definition:
clock.c:43
modules
rostests
apitests
compiler
ms
seh
seh0017.c
Generated on Mon Dec 2 2024 06:09:04 for ReactOS by
1.9.6