ReactOS
0.4.16-dev-106-g10b08aa
static_init.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS API tests
3
* LICENSE: LGPLv2.1+ - See COPYING.LIB in the top level directory
4
* PURPOSE: Test for static variable initialization
5
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
6
*/
7
8
#include <
apitest.h
>
9
10
extern
int
static_construct_counter
;
11
12
int
static_init_counter
= 123;
13
14
START_TEST
(static_init)
15
{
16
ok
(
static_init_counter
== 123,
"static_init_counter: %d\n"
,
static_init_counter
);
17
ok
(
static_construct_counter
== 790,
"static_construct_counter: %d\n"
,
static_construct_counter
);
18
}
apitest.h
ok
#define ok(value,...)
Definition:
atltest.h:57
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
static_init_counter
int static_init_counter
Definition:
static_init.c:12
static_construct_counter
int static_construct_counter
Definition:
static_construct.cpp:25
modules
rostests
apitests
crt
static_init.c
Generated on Tue Oct 8 2024 06:10:18 for ReactOS by
1.9.6