ReactOS
0.4.16-dev-306-g647d351
seh0002.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
[] =
"SEH0002.c"
;
9
10
int
main
() {
11
12
LONG
Counter
;
13
14
Counter
= 0;
15
16
try
{
17
Counter
+= 1;
18
}
19
except
(
Counter
)
20
/*
21
* counter should be positive indicating "EXECUTE HANDLER"
22
* but should never get here as no exception is raised
23
*/
24
{
25
Counter
+= 1;
26
}
27
endtry
28
29
if
(
Counter
!= 1) {
30
printf
(
"TEST 2 FAILED. Counter = %d\n\r"
,
Counter
);
31
return
-1;
32
}
33
34
return
0;
35
}
except
#define except(x)
Definition:
btrfs_drv.h:136
printf
#define printf
Definition:
freeldr.h:97
LONG
long LONG
Definition:
pedump.c:60
test
char test[]
Definition:
seh0002.c:8
main
int main()
Definition:
seh0002.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
seh0002.c
Generated on Mon Dec 2 2024 06:09:03 for ReactOS by
1.9.6