]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dylib-static-weak-link.dtest/missing.c
dyld-519.2.2.tar.gz
[apple/dyld.git] / testing / test-cases / dylib-static-weak-link.dtest / missing.c
1 #include <stddef.h>
2 #include <stdio.h>
3
4 extern int foo __attribute__((weak_import));
5
6
7 int main()
8 {
9 printf("[BEGIN] dylib-static-weak-link missing\n");
10 // dylib won't be found at runtime, so &foo should be NULL
11 if ( &foo == NULL )
12 printf("[PASS] dylib-static-weak-link missing\n");
13 else
14 printf("[FAIL] dylib-static-weak-link missing, &foo != NULL\n");
15
16 return 0;
17 }
18
19