blob: 882e67f08e404c65157b5aa0bd78991653b2fde2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* { dg-do run } */
extern void abort (void);
int
main (void)
{
int data = 1;
struct ptr { int val; } *ptr = (struct ptr *) &data;
ptr->val = 0;
if (data != 0)
abort ();
return 0;
}
|