mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 13:43:42 +00:00
[CRT_APITEST]
- Add tests for static initialization and static constructors CORE-10562 svn path=/trunk/; revision=69991
This commit is contained in:
parent
cd1f296855
commit
bfa1295d2b
4 changed files with 68 additions and 0 deletions
18
rostests/apitests/crt/static_init.c
Normal file
18
rostests/apitests/crt/static_init.c
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* PROJECT: ReactOS api tests
|
||||
* LICENSE: LGPLv2.1+ - See COPYING.LIB in the top level directory
|
||||
* PURPOSE: Test for static variable initialization
|
||||
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
extern int static_construct_counter;
|
||||
|
||||
int static_init_counter = 123;
|
||||
|
||||
START_TEST(static_init)
|
||||
{
|
||||
ok(static_init_counter == 123, "static_init_counter: %d\n", static_init_counter);
|
||||
ok(static_construct_counter == 790, "static_construct_counter: %d\n", static_construct_counter);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue