[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / clang / test / SemaObjC / property-lookup-in-id.m
blob38aa32c50607f08b365210e4cd7edf9448272c1b
1 // RUN: %clang_cc1  -fsyntax-only -verify -Wno-objc-root-class %s
2 // rdar://9106929
4 typedef struct objc_class *Class;
6 typedef struct objc_object {
7     Class isa;
8 } *id;
11 typedef struct __FSEventStream* FSEventStreamRef;
13 extern id NSApp;
15 @interface FileSystemMonitor { 
17  FSEventStreamRef fsEventStream;
19 @property(assign) FSEventStreamRef fsEventStream;
21 @end
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'}}
32 @end