Objc - adjust testcase

Submitted by Nicola Pero on Dec. 17, 2010, 10:18 p.m.

Details

Message ID 1292624310.676930945@192.168.2.228
State New
Headers show

Commit Message

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

Comments

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 hide | download patch | download mbox

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++;
     }