2013-09-28 04:21:48 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
|
|
|
|
// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s
|
2013-02-19 03:02:44 +08:00
|
|
|
// rdar://13178483
|
|
|
|
|
2013-05-15 23:27:35 +08:00
|
|
|
@class NSMutableDictionary; // expected-note {{receiver is instance of class declared here}}
|
2013-02-19 03:02:44 +08:00
|
|
|
|
|
|
|
@interface LaunchdJobs
|
|
|
|
|
2013-10-14 22:05:48 +08:00
|
|
|
@property (nonatomic,retain) NSMutableDictionary *uuids_jobs; // expected-note {{'_uuids_jobs' declared here}}
|
2013-02-19 03:02:44 +08:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation LaunchdJobs
|
|
|
|
|
|
|
|
-(void)job
|
|
|
|
{
|
|
|
|
|
|
|
|
[uuids_jobs objectForKey]; // expected-error {{use of undeclared identifier 'uuids_jobs'}} \
|
|
|
|
// expected-warning {{instance method '-objectForKey' not found}}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
void
|
|
|
|
doLaunchdJobCPU()
|
|
|
|
{
|
|
|
|
[uuids_jobs enumerateKeysAndObjectsUsingBlock]; // expected-error {{use of undeclared identifier 'uuids_jobs'}}
|
|
|
|
}
|