]> granicus.if.org Git - clang/commitdiff
add testcase for the recovery improvements in my last patch.
authorChris Lattner <sabre@nondot.org>
Mon, 20 Oct 2008 07:03:51 +0000 (07:03 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 20 Oct 2008 07:03:51 +0000 (07:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57810 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/property-9.m

index ed6c5342e8211c6bf0b494150d0e51f966387fad..4aa3515c4bbbe1f683b2ab88178c1f4bd6cd2ba8 100644 (file)
@@ -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
+