1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
4 typedef struct objc_class *Class;
6 typedef struct objc_object {
11 typedef struct __FSEventStream* FSEventStreamRef;
15 @interface FileSystemMonitor {
17 FSEventStreamRef fsEventStream;
19 @property(assign) FSEventStreamRef fsEventStream;
23 @implementation FileSystemMonitor
24 @synthesize fsEventStream;
26 - (void)startFSEventGathering:(id)sender
28 fsEventStream = [NSApp delegate].fsEventStream; // expected-warning {{instance method '-delegate' not found (return type defaults to 'id')}} \
29 // expected-error {{property 'fsEventStream' not found on object of type 'id'}}