New test.

From-SVN: r35107
This commit is contained in:
Richard Henderson 2000-07-17 15:44:39 -07:00 committed by Richard Henderson
parent 9b7bf67dad
commit 9db83b3996
2 changed files with 30 additions and 0 deletions

View File

@ -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.

View 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;
}