Testcase for PR c/471 - take 2

Billinghurst, David (CRTS) David.Billinghurst@riotinto.com
Sun Aug 20 18:03:00 GMT 2000


Attached testcase is from GNATS PR c/471.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=471&database=gcc
It should be marked as XFAIL for mips-sgi-irix6.5 with compiled with -g.  I
couldn't do that :-<  This is second attempt, moved to gcc.dg/noncompile as
label 'nowhere' isn't defined.

2000-08-21   David Billinghurst  <David.Billinghurst@riotinto.com>

	* gcc.dg/noncompile/20000821-1.c: New test from GNATS PR c/471


--- /dev/null   Mon Aug 21 10:51:45 2000
+++ gcc/testsuite/gcc.dg/noncompile/20000821-1.c        Mon Aug 21 10:41:18
2000
@@ -0,0 +1,8 @@
+/* PR c/471 - ICE on mips-sgi-irix6.5 when compiled with -g */
+int main ()
+{
+    if (1)
+       ;
+    else
+       goto nowhere; /* { dg-error "label `nowhere' used but not defined" }
*/
+}



More information about the Gcc-patches mailing list