aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-10-20 07:03:51 +0000
committerChris Lattner <sabre@nondot.org>2008-10-20 07:03:51 +0000
commit91867641fde54191942c1cbb5d74f8defd0fd93d (patch)
tree8bd35d6b1a376d428f03a1909831074592161dbc
parentdd5b5f2bb73d037745940431b71eb98393d12d4f (diff)
add testcase for the recovery improvements in my last patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57810 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/SemaObjC/property-9.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaObjC/property-9.m b/test/SemaObjC/property-9.m
index ed6c5342e8..4aa3515c4b 100644
--- a/test/SemaObjC/property-9.m
+++ b/test/SemaObjC/property-9.m
@@ -40,6 +40,7 @@ typedef signed char BOOL;
@interface BadPropClass
{
+ int _awesome;
}
@property (readonly) int; // expected-warning {{declaration does not declare anything}}
@@ -47,4 +48,11 @@ typedef signed char BOOL;
expected-warning {{declaration does not declare anything}}
@property (readonly) int : 4; // expected-error {{property requires fields to be named}}
+
+// test parser recovery: rdar://6254579
+@property (readonly getter=isAwesome) // expected-error {{error: expected ')'}} \
+ // expected-error {{to match this '('}}
+ int _awesome;
+
@end
+