]>
git.saurik.com Git - apple/dyld.git/blob - unit-tests/test-cases/weak-in-dylib/main.c
2 #include <stdio.h> // fprintf(), NULL
3 #include <stdlib.h> // exit(), EXIT_SUCCESS
5 #include "test.h" // PASS(), FAIL(), XPASS(), XFAIL()
7 // libfoo.dylib has a weak foo[]
15 FAIL("weak-in-dylib, pfoo3=%d", *pfoo3
);
16 else if ( foo
[2] != 3 )
17 FAIL("weak-in-dylib, foo[2]=%d", foo
[2]);
19 PASS("weak-in-dyliby");