2023-10-30 11:11:10 +02:00
|
|
|
#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()
|
|
|
|
{
|
2024-08-28 17:09:07 +03:00
|
|
|
printf("main\n");
|
2023-10-30 11:11:10 +02:00
|
|
|
}
|