]>
git.saurik.com Git - apple/dyld.git/blob - unit-tests/test-cases/absolute-symbol/main.c
1 #include <stdio.h> // fprintf(), NULL
2 #include <stdlib.h> // exit(), EXIT_SUCCESS
5 #include "test.h" // PASS(), FAIL(), XPASS(), XFAIL()
10 extern int myAbs1
__attribute__((weak_import
));
18 FAIL("absolute-symbol: &myAbs1 != 0");
23 if ((uintptr_t)&myAbs2
!= 1 ) {
24 FAIL("absolute-symbol: &myAbs2 != 1");
29 PASS("absolute-symbol");