PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pta-field-1.c
blobb03dff9b1a84126f3516d5811625b9ab73b57921
1 struct Foo {
2 int *p;
3 int *q;
4 };
6 void __attribute__((noinline))
7 bar (int **x)
9 struct Foo *f = (struct Foo *)x;
10 *(f->q) = 0;
13 int foo(void)
15 struct Foo f;
16 int i = 1, j = 2;
17 f.p = &i;
18 f.q = &j;
19 bar(&f.p);
20 return j;
23 extern void abort (void);
24 int main()
26 if (foo () != 0)
27 abort ();
28 return 0;