]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dylib-re-export-old-format.dtest/main.c
dyld-851.27.tar.gz
[apple/dyld.git] / testing / test-cases / dylib-re-export-old-format.dtest / main.c
1 // BUILD(macos|x86_64): $CC bar.c -mmacosx-version-min=10.5 -dynamiclib -install_name $RUN_DIR/libbar.dylib -o $BUILD_DIR/libbar.dylib
2 // BUILD(macos|x86_64): $CC foo.c -mmacosx-version-min=10.5 -dynamiclib $BUILD_DIR/libbar.dylib -sub_library libbar -install_name $RUN_DIR/libfoo.dylib -o $BUILD_DIR/libfoo.dylib
3 // BUILD(macos|x86_64): $CC main.c -mmacosx-version-min=10.5 -o $BUILD_DIR/dylib-re-export.exe $BUILD_DIR/libfoo.dylib -L$BUILD_DIR
4
5 // BUILD(ios,tvos,watchos,bridgeos):
6
7 // RUN: ./dylib-re-export.exe
8
9
10 #include <stdio.h>
11
12 #include "test_support.h"
13
14 extern int bar();
15
16
17 int main(int argc, const char* argv[], const char* envp[], const char* apple[]) {
18 PASS("Success");
19 #if 0
20 if ( bar() == 42 )
21 PASS("Success");
22 else
23 FAIL("Wrong value");
24 #endif
25 }
26
27