]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/weak-def-bind-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 -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/weak-def-bind-old-format.exe $BUILD_DIR/libfoo.dylib $BUILD_DIR/libbar.dylib -L$BUILD_DIR
5 // BUILD(ios,tvos,watchos,bridgeos):
7 // RUN: ./weak-def-bind-old-format.exe
12 #include "test_support.h"
18 int main(int argc
, const char* argv
[], const char* envp
[], const char* apple
[]) {
20 FAIL("weak-def-bind-old-format, wrong value");
23 FAIL("weak-def-bind-old-format, wrong value");
26 PASS("weak-def-bind-old-format");