annotate clang/test/SemaObjC/error-outof-scope-property-use.m @ 180:680fa57a2f20

fix compile errors.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 30 May 2020 17:44:06 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s
anatofuz
parents:
diff changeset
3 // rdar://13178483
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 @class NSMutableDictionary; // expected-note {{receiver is instance of class declared here}}
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 @interface LaunchdJobs
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 @property (nonatomic,retain) NSMutableDictionary *uuids_jobs; // expected-note {{'_uuids_jobs' declared here}}
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 @end
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 @implementation LaunchdJobs
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 -(void)job
anatofuz
parents:
diff changeset
16 {
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 [uuids_jobs objectForKey]; // expected-error {{use of undeclared identifier 'uuids_jobs'}} \
anatofuz
parents:
diff changeset
19 // expected-warning {{instance method '-objectForKey' not found}}
anatofuz
parents:
diff changeset
20 }
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 @end
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 void
anatofuz
parents:
diff changeset
26 doLaunchdJobCPU()
anatofuz
parents:
diff changeset
27 {
anatofuz
parents:
diff changeset
28 [uuids_jobs enumerateKeysAndObjectsUsingBlock]; // expected-error {{use of undeclared identifier 'uuids_jobs'}}
anatofuz
parents:
diff changeset
29 }