brintos

brintos / llvm-project-archived public Read only

0
0
Text · 771 B · 413161c Raw
29 lines · plain
1// RUN: %clang_cc1  -fsyntax-only -verify -Wno-objc-root-class %s2// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s3 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@end11 12@implementation LaunchdJobs13 14-(void)job15{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@end23 24void25doLaunchdJobCPU(void)26{27 [uuids_jobs enumerateKeysAndObjectsUsingBlock]; // expected-error {{use of undeclared identifier 'uuids_jobs'}}28}29