]> git.saurik.com Git - apple/objc4.git/blob - test/forwardDefaultStret.m
objc4-756.2.tar.gz
[apple/objc4.git] / test / forwardDefaultStret.m
1 /*
2 no arc, rdar://11368528 confused by Foundation
3 TEST_CONFIG MEM=mrc
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 objc\[\d+\]: HALTED
8 END
9 */
10
11 #include "test.h"
12
13 #include <objc/NSObject.h>
14
15 @interface NSObject (Fake)
16 -(struct stret)fakeorama;
17 @end
18
19 int main()
20 {
21 [NSObject fakeorama];
22 fail("should have crashed");
23 }
24