ReactOS
0.4.14-dev-554-g2f8d847
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
}
static_construct_counter
int static_construct_counter
Definition:
static_construct.cpp:25
START_TEST
START_TEST(static_init)
Definition:
static_init.c:14
static_init_counter
int static_init_counter
Definition:
static_init.c:12
apitest.h
ok
#define ok(value,...)
Definition:
atltest.h:57
modules
rostests
apitests
crt
static_init.c
Generated on Fri Dec 6 2019 06:05:38 for ReactOS by
1.8.15