This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Testcase for PR c/471 - take 2


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" }
*/
+}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]