Rafael Espindola | 14f9889 | 2013-09-27 20:21:48 +0000 | [diff] [blame] | 1 | // 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 Jahanian | 9352a62 | 2013-02-18 19:02:44 +0000 | [diff] [blame] | 3 | // rdar://13178483 |
| 4 | |
Fariborz Jahanian | 1404014 | 2013-05-15 15:27:35 +0000 | [diff] [blame] | 5 | @class NSMutableDictionary; // expected-note {{receiver is instance of class declared here}} |
Fariborz Jahanian | 9352a62 | 2013-02-18 19:02:44 +0000 | [diff] [blame] | 6 | |
| 7 | @interface LaunchdJobs |
| 8 | |
Serge Pavlov | 81e34b1 | 2013-10-14 14:05:48 +0000 | [diff] [blame] | 9 | @property (nonatomic,retain) NSMutableDictionary *uuids_jobs; // expected-note {{'_uuids_jobs' declared here}} |
Fariborz Jahanian | 9352a62 | 2013-02-18 19:02:44 +0000 | [diff] [blame] | 10 | |
| 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 | |
| 25 | void |
| 26 | doLaunchdJobCPU() |
| 27 | { |
| 28 | [uuids_jobs enumerateKeysAndObjectsUsingBlock]; // expected-error {{use of undeclared identifier 'uuids_jobs'}} |
| 29 | } |