]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/symbol-resolver-basic.dtest/main.c
2 // BUILD: $CC foo.c foo2.c -dynamiclib -install_name $RUN_DIR/libfoo.dylib -o $BUILD_DIR/libfoo.dylib
3 // BUILD: $CC main.c $BUILD_DIR/libfoo.dylib -o $BUILD_DIR/symbol-resolver.exe
4 // BUILD: $CC foo.c foo2.c -dynamiclib -DTEN=1 -install_name $RUN_DIR/libfoo10.dylib -o $BUILD_DIR/libfoo10.dylib
5 // BUILD: $CC main.c $BUILD_DIR/libfoo10.dylib -DTEN=1 -o $BUILD_DIR/symbol-resolver10.exe
7 // RUN: ./symbol-resolver.exe
8 // RUN: ./symbol-resolver10.exe
14 #include "test_support.h"
17 extern int fooPlusOne();
20 int main(int argc
, const char* argv
[], const char* envp
[], const char* apple
[]) {
24 else if ( fooPlusOne() != 11 )
25 FAIL("fooPlusOne() != 11");
31 else if ( fooPlusOne() != 1 )
32 FAIL("fooPlusOne() != 1");