OSDN Git Service

2011-10-19 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / torture / pr36373-9.c
1 /* { dg-do run } */
2
3 extern void abort (void);
4 struct Foo {
5     int *p;
6 } x;
7 void __attribute__((noinline))
8 foo()
9 {
10   *x.p = 0;
11 }
12 int main()
13 {
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;
23 }