8sa1-gcc/gcc/testsuite/gcc.c-torture/unsorted/dilayout.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

34 lines
301 B
C

struct ii
{
int a;
int b;
};
struct foo
{
int a;
struct ii ab;
int b;
};
struct ii
foo (int *p, struct foo a)
{
p[0] = a.a;
p[1] = a.ab.a;
p[2] = a.ab.b;
p[3] = a.b;
return a.ab;
}
str (struct ii ab, struct ii *p)
{
*p = ab;
}
ll (long long ab, long long *p)
{
*p = ab;
}