2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr36373-8.c
blob9f77ea137349c56201d881673e6019eb4115d459
1 /* { dg-do run } */
2 /* { dg-options "-fno-tree-sra" } */
4 extern void abort (void);
5 struct Foo {
6 int *p;
7 } x;
8 void __attribute__((noinline))
9 foo()
11 *x.p = 0;
13 int main()
15 int b;
16 struct Foo g;
17 b = 1;
18 g.p = &b;
19 x = g;
20 foo();
21 if (b != 0)
22 abort ();
23 return 0;