]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen-in-init3.dtest/foo.c
dyld-732.8.tar.gz
[apple/dyld.git] / testing / test-cases / dlopen-in-init3.dtest / foo.c
1
2 #include <stdio.h>
3
4 extern int bar();
5 extern int bazIsInited();
6
7 int foo() {
8 if ( bar() != 0 ) {
9 return 1;
10 }
11 if ( bazIsInited() == 0 ) {
12 printf("[FAIL] dlopen-in-init3, didn't init baz\n");
13 return 1;
14 }
15 return 0;
16 }