]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen-in-init2.dtest/bar.c
336e471af475cac6c1f9ed4677e26bf984196d85
[apple/dyld.git] / testing / test-cases / dlopen-in-init2.dtest / bar.c
1
2 static int inited = 0;
3
4 __attribute__((constructor))
5 static void myinit()
6 {
7 inited = 1;
8 }
9
10 int barIsInited() {
11 return inited;
12 }
13
14 int bar() {
15 return inited ? 0 : 1;
16 }