* gcc.c-torture/compile/20001123-2.c: New.
From-SVN: r37729
This commit is contained in:
parent
3a163b1a99
commit
9eca082e50
@ -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.
|
||||
|
21
gcc/testsuite/gcc.c-torture/compile/20001123-2.c
Normal file
21
gcc/testsuite/gcc.c-torture/compile/20001123-2.c
Normal 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 ();
|
||||
}
|
Loading…
Reference in New Issue
Block a user