| 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 |
| 3 |
|
| 4 |
@class NSMutableDictionary; // expected-note {{receiver is instance of class declared here}} |
| 5 |
|
| 6 |
@interface LaunchdJobs |
| 7 |
|
| 8 |
@property (nonatomic,retain) NSMutableDictionary *uuids_jobs; // expected-note {{'_uuids_jobs' declared here}} |
| 9 |
|
| 10 |
@end |
| 11 |
|
| 12 |
@implementation LaunchdJobs |
| 13 |
|
| 14 |
-(void)job |
| 15 |
{ |
| 16 |
|
| 17 |
[uuids_jobs objectForKey]; // expected-error {{use of undeclared identifier 'uuids_jobs'}} \ |
| 18 |
// expected-warning {{instance method '-objectForKey' not found}} |
| 19 |
} |
| 20 |
|
| 21 |
|
| 22 |
@end |
| 23 |
|
| 24 |
void |
| 25 |
doLaunchdJobCPU(void) |
| 26 |
{ |
| 27 |
[uuids_jobs enumerateKeysAndObjectsUsingBlock]; // expected-error {{use of undeclared identifier 'uuids_jobs'}} |
| 28 |
} |