]> git.saurik.com Git - apple/objc4.git/blob - test/forkInitializeDisabled.m
objc4-818.2.tar.gz
[apple/objc4.git] / test / forkInitializeDisabled.m
1 /*
2 TEST_CONFIG OS=macosx MEM=mrc ARCH=x86_64
3 (confused by ARC which loads Foundation which provokes more +initialize logs)
4 (also confused by i386 OS_object +load workaround)
5
6 TEST_ENV OBJC_PRINT_INITIALIZE_METHODS=YES
7
8 TEST_RUN_OUTPUT
9 objc\[\d+\]: INITIALIZE: disabling \+initialize fork safety enforcement because the app has a __DATA,__objc_fork_ok section
10 OK: forkInitializeDisabled\.m
11 END
12 */
13
14 #include "test.h"
15
16 asm(".section __DATA, __objc_fork_ok\n.long 0\n");
17
18 int main()
19 {
20 succeed(__FILE__);
21 }