dyld-732.8.tar.gz
[apple/dyld.git] / unit-tests / test-cases / lazy-dylib-init-order / main.c
1 #include <stdio.h>
2 #include <stdlib.h>
3
4
5 extern int foo();
6 extern int bar();
7
8 static __attribute__((constructor)) void main_init()
9 {
10 printf("main_init\n");
11 }
12
13 static __attribute__((destructor)) void main_term()
14 {
15 printf("main_term\n");
16 }
17
18
19 int main()
20 {
21 printf("main\n");
22 foo();
23 return 0;
24 }
25