[libc][test] Adjust header paths in tests (#119623)
[llvm-project.git] / clang / test / SemaObjC / property-lookup-in-id.m
blob7c676eb2f1c52e14160770a81e06834b985813dd
1 // RUN: %clang_cc1  -fsyntax-only -verify -Wno-objc-root-class %s
3 typedef struct objc_class *Class;
5 typedef struct objc_object {
6     Class isa;
7 } *id;
10 typedef struct __FSEventStream* FSEventStreamRef;
12 extern id NSApp;
14 @interface FileSystemMonitor { 
16  FSEventStreamRef fsEventStream;
18 @property(assign) FSEventStreamRef fsEventStream;
20 @end
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'}}
31 @end