* gcc.c-torture/execute/20000412-3.c: New test.

From-SVN: r33117
This commit is contained in:
Jeffrey A Law 2000-04-12 16:35:14 +00:00 committed by Jeff Law
parent 46feb4ab1e
commit d0158d40e4
2 changed files with 33 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Wed Apr 12 10:25:08 2000 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/20000412-3.c: New test.
* gcc.c-torture/compile/20000412-1.c: New test.
* gcc.c-torture/execute/20000412-2.c: New test.

View File

@ -0,0 +1,32 @@
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];
}