2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr36373-9.c
blob5588eadae99ab34a6d183478ecc38ca6cf4b09fd
1 /* { dg-do run } */
3 extern void abort (void);
4 struct Foo {
5 int *p;
6 } x;
7 void __attribute__((noinline))
8 foo()
10 *x.p = 0;
12 int main()
14 int b;
15 struct Foo g;
16 b = 1;
17 g.p = &b;
18 x = g;
19 foo();
20 if (b != 0)
21 abort ();
22 return 0;