* gcc.c-torture/compile/20001123-2.c: New.

From-SVN: r37729
This commit is contained in:
Alexandre Oliva 2000-11-25 04:27:59 +00:00 committed by Alexandre Oliva
parent 3a163b1a99
commit 9eca082e50
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-11-25 Alexandre Oliva <aoliva@redhat.com>
* gcc.c-torture/compile/20001123-2.c: New.
2000-11-24 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* g++.old-dega/g++.pt/ttp62.C: Call abort() on failure.

View File

@ -0,0 +1,21 @@
/* Copyright 2000 Free Software Foundation
by Alexandre Oliva <aoliva@redhat.com>
Based on zlib/gzio.c.
This used to generate duplicate labels when compiled with
sh-elf-gcc -O2 -m3 -fPIC.
Bug reported by NIIBE Yutaka <gniibe@m17n.org>. */
void foo (void);
void
bar ()
{
unsigned len;
for (len = 0; len < 2; len++)
foo ();
}