Patchwork Objc - adjust testcase

login
register
mail settings
Submitter Nicola Pero
Date Dec. 17, 2010, 10:18 p.m.
Message ID <1292624310.676930945@192.168.2.228>
Download mbox | patch
Permalink /patch/75999/
State New
Headers show

Comments

Nicola Pero - Dec. 17, 2010, 10:18 p.m.
This fixes the new ObjC failure that appeared in trunk with the recent changes
to the C parser (btw, the new error message looks better).

Ok to commit ?

Thanks
Mike Stump - Dec. 17, 2010, 10:36 p.m.
On Dec 17, 2010, at 2:18 PM, "Nicola Pero" <nicola.pero@meta-innovation.com> wrote:
> This fixes the new ObjC failure that appeared in trunk with the recent changes
> to the C parser (btw, the new error message looks better).
> 
> Ok to commit ?

Cleanups like this are always ok for the objective test suite if you agree that the compilers behavior is better.

Ok.
>

Patch

Index: ChangeLog
===================================================================
--- ChangeLog   (revision 167999)
+++ ChangeLog   (working copy)
@@ -1,3 +1,7 @@ 
+2010-12-17  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * objc.dg/exceptions-4.m: Adjust for change in error message.
+
 2010-12-17  Paolo Bonzini  <bonzini@gnu.org>
 
        PR c/20385
Index: objc.dg/exceptions-4.m
===================================================================
--- objc.dg/exceptions-4.m      (revision 167999)
+++ objc.dg/exceptions-4.m      (working copy)
@@ -39,7 +39,7 @@ 
     {
       dummy++;
     }
-  @catch (i) /* { dg-error "expected declaration specifiers or ..... before .i." } */
+  @catch (i) /* { dg-error "unknown type name .i." } */
     {
       dummy++;
     }