1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
3 typedef struct objc_class *Class;
5 typedef struct objc_object {
10 typedef struct __FSEventStream* FSEventStreamRef;
14 @interface FileSystemMonitor {
16 FSEventStreamRef fsEventStream;
18 @property(assign) FSEventStreamRef fsEventStream;
22 @implementation FileSystemMonitor
23 @synthesize fsEventStream;
25 - (void)startFSEventGathering:(id)sender
27 fsEventStream = [NSApp delegate].fsEventStream; // expected-warning {{instance method '-delegate' not found (return type defaults to 'id')}} \
28 // expected-error {{property 'fsEventStream' not found on object of type 'id'}}