]> git.saurik.com Git - apple/objc4.git/blob - test/forwardDefault.m
objc4-680.tar.gz
[apple/objc4.git] / test / forwardDefault.m
1 /*
2 no arc, rdar://11368528 confused by Foundation
3 TEST_CONFIG MEM=mrc,gc
4 TEST_CRASHES
5 TEST_RUN_OUTPUT
6 objc\[\d+\]: \+\[NSObject fakeorama\]: unrecognized selector sent to instance 0x[0-9a-fA-F]+ \(no message forward handler is installed\)
7 CRASHED: SIG(ILL|TRAP)
8 OR
9 not OBJC2
10 objc\[\d+\]: NSObject: Does not recognize selector forward:: \(while forwarding fakeorama\)
11 CRASHED: SIG(ILL|TRAP)
12 END
13 */
14
15 #include "test.h"
16
17 #include <objc/NSObject.h>
18
19 @interface NSObject (Fake)
20 -(void)fakeorama;
21 @end
22
23 int main()
24 {
25 #if !__OBJC2__
26 fprintf(stderr, "not OBJC2\n");
27 #endif
28 [NSObject fakeorama];
29 fail("should have crashed");
30 }
31