]>
git.saurik.com Git - apple/dyld.git/blob - unit-tests/test-cases/re-export-symbol/main2.c
2 #include <stdio.h> // fprintf(), NULL
3 #include <stdlib.h> // exit(), EXIT_SUCCESS
6 #include "test.h" // PASS(), FAIL(), XPASS(), XFAIL()
13 int (*pmybar
)() = &mybar
;
18 FAIL("re-export-symbol: foo() returned wrong value");
20 FAIL("re-export-symbol: mybar() returned wrong value");
21 if ( (*pmybar
)() != 10 )
22 FAIL("re-export-symbol: (*pmybar)() returned wrong value");
23 PASS("re-export-symbol");