mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 15:18:33 +00:00
![Thomas Faber](/assets/img/avatar_default.png)
- Also test static constructors/destructors in a DLL. CORE-10562 svn path=/trunk/; revision=69993
19 lines
548 B
C
19 lines
548 B
C
/*
|
|
* 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);
|
|
}
|