Broken testcase gcc.dg/20050121-1.c

Manuel López-Ibáñez lopezibanez@gmail.com
Tue Mar 20 21:40:00 GMT 2007


:ADDPATCH C:

Since it seems that grouping fixes didn't work [1], let's try a
different approach.

Ian, you added this testcase, is the fix correct or is this a regression?

[1] http://gcc.gnu.org/ml/gcc-patches/2007-03/msg00942.html


2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

 * gcc.dg/20050121-1.c: Fix wrong dg directive.
-------------- next part --------------
--- gcc/testsuite/gcc.dg/20050121-1.c	(revision 122287)
+++ gcc/testsuite/gcc.dg/20050121-1.c	(working copy)
@@ -3,7 +3,7 @@
 /* { dg-do-compile } */
 
 void foo()
 {
   return;
-  break;	/* { dg-warning "break statement not within" } */
+  break;	/* { dg-error "break statement not within" } */
 }


More information about the Gcc-patches mailing list