]> git.saurik.com Git - apple/objc4.git/blob - test/rawisa.m
objc4-818.2.tar.gz
[apple/objc4.git] / test / rawisa.m
1 /*
2 TEST_CFLAGS -Xlinker -sectcreate -Xlinker __DATA -Xlinker __objc_rawisa -Xlinker /dev/null
3 TEST_ENV OBJC_PRINT_RAW_ISA=YES
4
5 TEST_RUN_OUTPUT
6 objc\[\d+\]: RAW ISA: disabling non-pointer isa because the app has a __DATA,__objc_rawisa section
7 (.* RAW ISA: .*\n)*
8 OK: rawisa.m(\n.* RAW ISA: .*)*
9 OR
10 (.* RAW ISA: .*\n)*
11 no __DATA,__rawisa support
12 OK: rawisa.m(\n.* RAW ISA: .*)*
13 END
14
15 "RAW ISA" is allowed after "OK" because of static destructors
16 that provoke class realization.
17 */
18
19 #include "test.h"
20
21 int main()
22 {
23 fprintf(stderr, "\n");
24 #if ! (SUPPORT_NONPOINTER_ISA && TARGET_OS_OSX)
25 // only 64-bit Mac supports this
26 fprintf(stderr, "no __DATA,__rawisa support\n");
27 #endif
28 succeed(__FILE__);
29 }
30