15 lines
169 B
C++
15 lines
169 B
C++
|
#include <stdio.h>
|
||
|
|
||
|
struct foo_t
|
||
|
{
|
||
|
foo_t() { printf("global constructor works\n"); }
|
||
|
~foo_t() { printf("global destructor works\n"); }
|
||
|
};
|
||
|
|
||
|
foo_t foo;
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
|
||
|
}
|