PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr41317.c
blob742068b9ad406669fe02f5a0463625d074bf84b7
1 extern void abort (void);
3 struct A
5 int i;
6 };
7 struct B
9 struct A a;
10 int j;
13 static void
14 foo (struct B *p)
16 ((struct A *)p)->i = 1;
19 int main()
21 struct A a;
22 a.i = 0;
23 foo ((struct B *)&a);
24 if (a.i != 1)
25 abort ();
26 return 0;