2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr47621.c
blob882e67f08e404c65157b5aa0bd78991653b2fde2
1 /* { dg-do run } */
3 extern void abort (void);
5 int
6 main (void)
8 int data = 1;
9 struct ptr { int val; } *ptr = (struct ptr *) &data;
10 ptr->val = 0;
11 if (data != 0)
12 abort ();
13 return 0;