r175453 - Test for my last patch. // rdar://13178483

Fariborz Jahanian fjahanian at apple.com
Mon Feb 18 11:02:45 PST 2013


Author: fjahanian
Date: Mon Feb 18 13:02:44 2013
New Revision: 175453

URL: http://llvm.org/viewvc/llvm-project?rev=175453&view=rev
Log:
Test for my last patch. // rdar://13178483


Added:
    cfe/trunk/test/SemaObjC/error-outof-scope-property-use.m

Added: cfe/trunk/test/SemaObjC/error-outof-scope-property-use.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/error-outof-scope-property-use.m?rev=175453&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/error-outof-scope-property-use.m (added)
+++ cfe/trunk/test/SemaObjC/error-outof-scope-property-use.m Mon Feb 18 13:02:44 2013
@@ -0,0 +1,29 @@
+// RUN: %clang_cc1  -fsyntax-only -fobjc-default-synthesize-properties -verify -Wno-objc-root-class %s
+// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -fobjc-default-synthesize-properties -verify -Wno-objc-root-class %s
+// rdar://13178483
+
+ at class NSMutableDictionary;
+
+ at interface LaunchdJobs 
+
+ at property (nonatomic,retain) NSMutableDictionary *uuids_jobs; // expected-note 2 {{'_uuids_jobs' declared here}}
+
+ at end
+
+ at implementation LaunchdJobs
+
+-(void)job
+{
+
+ [uuids_jobs objectForKey]; // expected-error {{use of undeclared identifier 'uuids_jobs'}} \
+                            // expected-warning {{instance method '-objectForKey' not found}}
+}
+
+
+ at end
+
+void
+doLaunchdJobCPU()
+{
+ [uuids_jobs enumerateKeysAndObjectsUsingBlock]; // expected-error {{use of undeclared identifier 'uuids_jobs'}}
+}





More information about the cfe-commits mailing list