diff mbox

PR objc/23709

Message ID 1287521305.41447812@192.168.2.229
State New
Headers show

Commit Message

Nicola Pero Oct. 19, 2010, 8:48 p.m. UTC
This bug seems to have already been fixed in trunk :-) - it is about the parser
recovering gracefully from a syntax error; it may have been fixed by my
fix for PR objc/23710, or by something else.  Anyway I just want to close
the bug but I'd like to add two testcases (one to ObjC and one to ObjC++) 
extracted from the bug before closing it.

Ok to commit to trunk ?

Thanks

Comments

Mike Stump Oct. 19, 2010, 9:21 p.m. UTC | #1
On Oct 19, 2010, at 1:48 PM, Nicola Pero wrote:
> This bug seems to have already been fixed in trunk :-)

> Ok to commit to trunk ?

Ok.
diff mbox

Patch

Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog     (revision 165706)
+++ gcc/testsuite/ChangeLog     (working copy)
@@ -1,3 +1,9 @@ 
+2010-10-19  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       PR objc/23709
+       * objc.dg/pr23709.m: New.
+       * obj-c++.dg/pr23709.m: New.    
+
 2010-10-19  Richard Henderson  <rth@redhat.com>
 
        * gcc.target/i386/fma3-fma.c: New.
Index: gcc/testsuite/objc.dg/pr23709.m
===================================================================
--- gcc/testsuite/objc.dg/pr23709.m     (revision 0)
+++ gcc/testsuite/objc.dg/pr23709.m     (revision 0)
@@ -0,0 +1,12 @@ 
+/* { dg-do compile } */
+
+@interface A
++(void)method: (int)parameter {} /* { dg-error "expected" } */
+@end 
+
+@implementation A
++(void)method: (int)parameter
+{
+  *parameter; /* { dg-error "invalid type argument" } */
+}
+@end 
Index: gcc/testsuite/obj-c++.dg/pr23709.mm
===================================================================
--- gcc/testsuite/obj-c++.dg/pr23709.mm (revision 0)
+++ gcc/testsuite/obj-c++.dg/pr23709.mm (revision 0)
@@ -0,0 +1,12 @@ 
+/* { dg-do compile } */
+
+@interface A
++(void)method: (int)parameter {} /* { dg-error "expected" } */
+@end 
+
+@implementation A
++(void)method: (int)parameter
+{
+  *parameter; /* { dg-error "invalid type argument" } */
+}
+@end