* gcc.c-torture/compile/20000511-1.c: New test.
From-SVN: r33867
This commit is contained in:
parent
2e8b0910d0
commit
8a744ae0cd
@ -1,5 +1,6 @@
|
||||
Thu May 11 19:02:43 2000 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gcc.c-torture/compile/20000511-1.c: New test.
|
||||
* g77.f-torture/compile/20000511-1.f: New test.
|
||||
* g77.f-torture/compile/20000511-2.f: New test.
|
||||
|
||||
|
31
gcc/testsuite/gcc.c-torture/compile/20000511-1.c
Normal file
31
gcc/testsuite/gcc.c-torture/compile/20000511-1.c
Normal file
@ -0,0 +1,31 @@
|
||||
typedef struct {
|
||||
char y;
|
||||
char x[32];
|
||||
} X;
|
||||
|
||||
int z (void)
|
||||
{
|
||||
X xxx;
|
||||
xxx.x[0] =
|
||||
xxx.x[31] = '0';
|
||||
xxx.y = 0xf;
|
||||
return f (xxx, xxx);
|
||||
}
|
||||
|
||||
int main (void)
|
||||
{
|
||||
int val;
|
||||
|
||||
val = z ();
|
||||
if (val != 0x60)
|
||||
abort ();
|
||||
exit (0);
|
||||
}
|
||||
|
||||
int f(X x, X y)
|
||||
{
|
||||
if (x.y != y.y)
|
||||
return 'F';
|
||||
|
||||
return x.x[0] + y.x[0];
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user