mirror of
https://github.com/darlinghq/darling-objc4.git
synced 2025-02-17 04:49:35 +00:00
25 lines
437 B
Objective-C
25 lines
437 B
Objective-C
/*
|
|
no arc, rdar://11368528 confused by Foundation
|
|
TEST_CONFIG MEM=mrc
|
|
TEST_CRASHES
|
|
TEST_RUN_OUTPUT
|
|
objc\[\d+\]: \+\[NSObject fakeorama\]: unrecognized selector sent to instance 0x[0-9a-fA-F]+ \(no message forward handler is installed\)
|
|
objc\[\d+\]: HALTED
|
|
END
|
|
*/
|
|
|
|
#include "test.h"
|
|
|
|
#include <objc/NSObject.h>
|
|
|
|
@interface NSObject (Fake)
|
|
-(void)fakeorama;
|
|
@end
|
|
|
|
int main()
|
|
{
|
|
[NSObject fakeorama];
|
|
fail("should have crashed");
|
|
}
|
|
|