This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Testcase for PR c/471 - take 2
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Subject: Testcase for PR c/471 - take 2
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Date: Mon, 21 Aug 2000 01:00:50 -0000
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" }
*/
+}