[cfe-commits] r151767 - /cfe/trunk/test/FixIt/atomic-property.m
Fariborz Jahanian
fjahanian at apple.com
Wed Feb 29 14:21:36 PST 2012
Author: fjahanian
Date: Wed Feb 29 16:21:36 2012
New Revision: 151767
URL: http://llvm.org/viewvc/llvm-project?rev=151767&view=rev
Log:
Test for my last patch. // rdar://10267155.
Added:
cfe/trunk/test/FixIt/atomic-property.m
Added: cfe/trunk/test/FixIt/atomic-property.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/atomic-property.m?rev=151767&view=auto
==============================================================================
--- cfe/trunk/test/FixIt/atomic-property.m (added)
+++ cfe/trunk/test/FixIt/atomic-property.m Wed Feb 29 16:21:36 2012
@@ -0,0 +1,29 @@
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fdiagnostics-parseable-fixits -x objective-c -fobjc-arc %s 2>&1 | FileCheck %s
+
+ at interface I
+ at property id prop;
+ at property (atomic) id atomic_prop;
+- (id) prop;
+- (id) atomic_prop;
+
+ at property ( ) id prop1;
+
+ at property (copy, atomic, readwrite) id atomic_prop1;
+
+ at property (copy, readwrite) id prop2;
+ at end
+
+ at implementation I
+ at synthesize prop, prop1, prop2;
+ at synthesize atomic_prop, atomic_prop1;
+- (id) prop { return 0; }
+- (id) prop1 { return 0; }
+- (id) prop2 { return 0; }
+- (id) atomic_prop { return 0; }
+- (id) atomic_prop1 { return 0; }
+ at end
+
+// CHECK: {4:1-4:10}:"@property (nonatomic) "
+// CHECK: {9:1-9:12}:"@property (nonatomic"
+// CHECK: {13:1-13:12}:"@property (nonatomic, "
+
More information about the cfe-commits
mailing list