]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/missing-weak-def.dtest/main.c
2 // BUILD: $CC bar.c -dynamiclib -install_name $RUN_DIR/libbar.dylib -o $BUILD_DIR/missing/libbar.dylib
3 // BUILD: $CC bar-empty.c -dynamiclib -install_name $BUILD_DIR/libbar.dylib -o $BUILD_DIR/libbar.dylib
4 // BUILD: $CC main.c $BUILD_DIR/missing/libbar.dylib -o $BUILD_DIR/missing-weak-def.exe
6 // BUILD: $SKIP_INSTALL $BUILD_DIR/missing/libbar.dylib
8 // RUN: ./missing-weak-def.exe
10 // bar is a weak_import weak bind and the libbar we have at runtime is missing that symbol
16 #include "test_support.h"
19 __attribute__((weak_import
))
22 int main(int argc
, const char* argv
[], const char* envp
[], const char* apple
[]) {
24 FAIL("bar from libbar not bound");