blob: c480e2df0b7ee6dea1a669857461aa8e81d2c721 [file] [log] [blame]
Rafael Espindola14f98892013-09-27 20:21:48 +00001// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
2// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s
Fariborz Jahanian9352a622013-02-18 19:02:44 +00003// rdar://13178483
4
Fariborz Jahanian14040142013-05-15 15:27:35 +00005@class NSMutableDictionary; // expected-note {{receiver is instance of class declared here}}
Fariborz Jahanian9352a622013-02-18 19:02:44 +00006
7@interface LaunchdJobs
8
Serge Pavlov81e34b12013-10-14 14:05:48 +00009@property (nonatomic,retain) NSMutableDictionary *uuids_jobs; // expected-note {{'_uuids_jobs' declared here}}
Fariborz Jahanian9352a622013-02-18 19:02:44 +000010
11@end
12
13@implementation LaunchdJobs
14
15-(void)job
16{
17
18 [uuids_jobs objectForKey]; // expected-error {{use of undeclared identifier 'uuids_jobs'}} \
19 // expected-warning {{instance method '-objectForKey' not found}}
20}
21
22
23@end
24
25void
26doLaunchdJobCPU()
27{
28 [uuids_jobs enumerateKeysAndObjectsUsingBlock]; // expected-error {{use of undeclared identifier 'uuids_jobs'}}
29}