blob: 08e2b6c2e37c5e9ad1e50a2aba5ffc9185724c01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <stdio.h>
[[gnu::constructor]]
static void _our_constructor(void) {
printf("Constructor\n");
}
[[gnu::destructor]]
static void _our_destructor(void) {
printf("Destructor\n");
}
int main(int argc, char *argv[]) {
printf("main\n");
return 0;
}
|