ReactOS
0.4.16-dev-306-g647d351
seh0034.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
#define faill()
9
#define startest()
10
#define finish()
11
12
char
test
[] =
"SEH0034.c"
;
13
14
int
main
() {
15
ULONG
Index1;
16
LONG
Counter
;
17
18
startest
();
19
20
Counter
= 0;
21
22
for
(Index1 = 0; Index1 < 10; Index1 += 1) {
23
try
{
24
if
((Index1 & 0x1) == 0) {
25
/* add 1 to counter if Index1 is odd */
26
Counter
+= 1;
27
}
28
}
29
finally
{
30
/* add 2 to counter always */
31
Counter
+= 2;
32
#if defined(_MSC_VER) && !defined(__clang__)
33
continue
;
34
#endif
35
}
36
endtry
37
/* never gets executed due to continue in finally */
38
Counter
+= 4;
39
}
40
41
if
(
Counter
!= 25) {
42
printf
(
"TEST 34 FAILED. Counter = %d\n\r"
,
Counter
);
43
return
-1;
44
}
45
46
return
0;
47
}
printf
#define printf
Definition:
freeldr.h:97
LONG
long LONG
Definition:
pedump.c:60
startest
#define startest()
Definition:
seh0034.c:9
test
char test[]
Definition:
seh0034.c:12
main
int main()
Definition:
seh0034.c:14
seh.h
endtry
#define endtry
Definition:
seh.h:24
Counter
static LARGE_INTEGER Counter
Definition:
clock.c:43
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
modules
rostests
apitests
compiler
ms
seh
seh0034.c
Generated on Mon Dec 2 2024 06:09:04 for ReactOS by
1.9.6