aboutsummaryrefslogtreecommitdiffstats
path: root/test/C++Frontend/ConstructorDestructorAttributes.c
blob: 1a5fb9c4de0f0ff96b44348ad3237355a9a382a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

void ctor() __attribute__((constructor));

void ctor() {
   printf("Create!\n");
}
void dtor() __attribute__((destructor));

void dtor() {
   printf("Create!\n");
}

int main() { return 0; }