]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dylib-static-weak-link.dtest/missing.c
dyld-750.6.tar.gz
[apple/dyld.git] / testing / test-cases / dylib-static-weak-link.dtest / missing.c
1 #include "test_support.h"
2
3 extern int foo __attribute__((weak_import));
4
5
6 int main(int argc, const char* argv[], const char* envp[], const char* apple[]) {
7 // dylib won't be found at runtime, so &foo should be NULL
8 if ( &foo == NULL )
9 PASS("Success");
10 else
11 FAIL("&foo != NULL");
12 }
13
14