1*67e74705SXin Li// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s 2*67e74705SXin Li// rdar://9106929 3*67e74705SXin Li 4*67e74705SXin Litypedef struct objc_class *Class; 5*67e74705SXin Li 6*67e74705SXin Litypedef struct objc_object { 7*67e74705SXin Li Class isa; 8*67e74705SXin Li} *id; 9*67e74705SXin Li 10*67e74705SXin Li 11*67e74705SXin Litypedef struct __FSEventStream* FSEventStreamRef; 12*67e74705SXin Li 13*67e74705SXin Liextern id NSApp; 14*67e74705SXin Li 15*67e74705SXin Li@interface FileSystemMonitor { 16*67e74705SXin Li 17*67e74705SXin Li FSEventStreamRef fsEventStream; 18*67e74705SXin Li} 19*67e74705SXin Li@property(assign) FSEventStreamRef fsEventStream; 20*67e74705SXin Li 21*67e74705SXin Li@end 22*67e74705SXin Li 23*67e74705SXin Li@implementation FileSystemMonitor 24*67e74705SXin Li@synthesize fsEventStream; 25*67e74705SXin Li 26*67e74705SXin Li- (void)startFSEventGathering:(id)sender 27*67e74705SXin Li{ 28*67e74705SXin Li fsEventStream = [NSApp delegate].fsEventStream; // expected-warning {{instance method '-delegate' not found (return type defaults to 'id')}} \ 29*67e74705SXin Li // expected-error {{property 'fsEventStream' not found on object of type 'id'}} 30*67e74705SXin Li 31*67e74705SXin Li} 32*67e74705SXin Li@end 33*67e74705SXin Li 34