summaryrefslogtreecommitdiff
path: root/test/SemaObjC/property-typecheck-1.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-05-08 21:10:00 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-05-08 21:10:00 +0000
commit7aaa409fe0ca54f9bcc69b55e4d8903fca64a76f (patch)
treeb6f3d9e3fe4845b42f7a425e3577660a4fc50099 /test/SemaObjC/property-typecheck-1.m
parentfcab2ca966d5176839f8698535e0d807bd968629 (diff)
downloadclang-7aaa409fe0ca54f9bcc69b55e4d8903fca64a76f.tar.gz
Fixes a bug in my last patch. Order of types reversed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71267 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/property-typecheck-1.m')
-rw-r--r--test/SemaObjC/property-typecheck-1.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/SemaObjC/property-typecheck-1.m b/test/SemaObjC/property-typecheck-1.m
index c4d7cd2448..ca8a1393b0 100644
--- a/test/SemaObjC/property-typecheck-1.m
+++ b/test/SemaObjC/property-typecheck-1.m
@@ -73,11 +73,11 @@ typedef void (F)(void);
NSArray* first;
}
-@property (readonly) NSArray* pieces;
-@property (readonly) NSMutableArray* first; // expected-warning {{type of property 'first' does not match type of accessor 'first'}}
+@property (readonly) NSArray* pieces; // expected-warning {{type of property 'pieces' does not match type of accessor 'pieces'}}
+@property (readonly) NSMutableArray* first;
-- (NSMutableArray*) pieces;
-- (NSArray*) first; // expected-note {{declared at}} // expected-note {{declared at}}
+- (NSMutableArray*) pieces; // expected-note {{declared at}} // expected-note {{declared at}}
+- (NSArray*) first;
@end
@interface Class2 {
@@ -90,12 +90,12 @@ typedef void (F)(void);
- (id) lastPiece
{
- return container.pieces;
+ return container.pieces; // expected-warning {{type of property 'pieces' does not match type of accessor 'pieces'}}
}
- (id)firstPeice
{
- return container.first; // expected-warning {{type of property 'first' does not match type of accessor 'first'}}
+ return container.first;
}
@end