mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 18:50:12 +08:00
New test.
From-SVN: r35107
This commit is contained in:
parent
9b7bf67dad
commit
9db83b3996
@ -1,3 +1,7 @@
|
||||
2000-07-17 Richard Henderson <rth@cygnus.com>
|
||||
|
||||
* gcc.c-torture/execute/20000717-4.c: New test.
|
||||
|
||||
2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
|
||||
|
||||
* gcc.dg/cpp/syshdr.c: New test.
|
||||
|
26
gcc/testsuite/gcc.c-torture/execute/20000717-4.c
Normal file
26
gcc/testsuite/gcc.c-torture/execute/20000717-4.c
Normal file
@ -0,0 +1,26 @@
|
||||
/* Extracted from gas. Incorrectly generated non-pic code at -O0 for
|
||||
IA-64, which produces linker errors on some operating systems. */
|
||||
|
||||
struct
|
||||
{
|
||||
int offset;
|
||||
struct slot
|
||||
{
|
||||
int field[6];
|
||||
}
|
||||
slot[4];
|
||||
} s;
|
||||
|
||||
int
|
||||
x ()
|
||||
{
|
||||
int toggle = 0;
|
||||
int r = s.slot[0].field[!toggle];
|
||||
return r;
|
||||
}
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user