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