2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20000603-1.c
blob9c9f69baf04d1f47584344c31d78b4fb2e273400
1 struct s1 { double d; };
2 struct s2 { double d; };
4 double f(struct s1 *a, struct s2 *b)
6 a->d = 1.0;
7 return b->d + 1.0;
10 int main()
12 struct s1 a;
13 a.d = 0.0;
14 if (f (&a, (struct s2 *)&a) != 2.0)
15 abort ();
16 return 0;