[cfe-commits] r57810 - /cfe/trunk/test/SemaObjC/property-9.m
Chris Lattner
sabre at nondot.org
Mon Oct 20 00:03:51 PDT 2008
Author: lattner
Date: Mon Oct 20 02:03:51 2008
New Revision: 57810
URL: http://llvm.org/viewvc/llvm-project?rev=57810&view=rev
Log:
add testcase for the recovery improvements in my last patch.
Modified:
cfe/trunk/test/SemaObjC/property-9.m
Modified: cfe/trunk/test/SemaObjC/property-9.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/property-9.m?rev=57810&r1=57809&r2=57810&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/property-9.m (original)
+++ cfe/trunk/test/SemaObjC/property-9.m Mon Oct 20 02:03:51 2008
@@ -40,6 +40,7 @@
@interface BadPropClass
{
+ int _awesome;
}
@property (readonly) int; // expected-warning {{declaration does not declare anything}}
@@ -47,4 +48,11 @@
expected-warning {{declaration does not declare anything}}
@property (readonly) int : 4; // expected-error {{property requires fields to be named}}
+
+// test parser recovery: rdar://6254579
+ at property (readonly getter=isAwesome) // expected-error {{error: expected ')'}} \
+ // expected-error {{to match this '('}}
+ int _awesome;
+
@end
+
More information about the cfe-commits
mailing list