Patchwork =?UTF-8?Q?PR=20objc/45735=20(more=20testcases)?=

login
register
mail settings
Submitter Nicola Pero
Date Oct. 24, 2010, 10:55 a.m.
Message ID <1287917714.12423832@192.168.2.227>
Download mbox | patch
Permalink /patch/69029/
State New
Headers show

Comments

Nicola Pero - Oct. 24, 2010, 10:55 a.m.
PR objc/45735 is another "ice-on-invalid-code" bug 
which we have fixed in trunk for 4.6.0 while working on
the ObjC method declaration/definition parsing.

Ok to commit two testcases ?

Thanks
Mike Stump - Oct. 24, 2010, 4:45 p.m.
On Oct 24, 2010, at 3:55 AM, "Nicola Pero" <nicola.pero@meta-innovation.com> wrote:
> Ok to commit two testcases ?

Ok.

Patch

Index: ChangeLog
===================================================================
--- ChangeLog   (revision 165898)
+++ ChangeLog   (working copy)
@@ -1,5 +1,11 @@ 
 2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
 
+       PR objc/45735   
+       * obj-c.dg/pr45735.mm: New.     
+       * obj-c++.dg/pr45735.mm: New.
+
+2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
+
        PR objc/24393
        * objc.dg/pr24393.m: New.
        * obj-c++.dg/pr24393.mm: New.
Index: objc.dg/pr45735.m
===================================================================
--- objc.dg/pr45735.m   (revision 0)
+++ objc.dg/pr45735.m   (revision 0)
@@ -0,0 +1,4 @@ 
+/* { dg-compile } */
+@interface Fraction
+-(void) setNumerator: (int) :(int) ; /* { dg-error "expected identifier" } */
+@end
Index: obj-c++.dg/pr45735.mm
===================================================================
--- obj-c++.dg/pr45735.mm       (revision 0)
+++ obj-c++.dg/pr45735.mm       (revision 0)
@@ -0,0 +1,4 @@ 
+/* { dg-compile } */
+@interface Fraction
+-(void) setNumerator: (int) :(int) ; /* { dg-error "expected identifier" } */
+@end