8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/20000603-1.c
Richard Henderson 72934de72b * gcc.c-torture/execute/20000603-1.c: New.
From-SVN: r34379
2000-06-03 08:01:49 -07:00

18 lines
235 B
C

struct s1 { double d; };
struct s2 { double d; };
double f(struct s1 *a, struct s2 *b)
{
a->d = 1.0;
return b->d + 1.0;
}
int main()
{
struct s1 a;
a.d = 0.0;
if (f (&a, (struct s2 *)&a) != 2.0)
abort ();
return 0;
}