Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr45967-3.c
blob1a23a773b17a163ce65b4b3e0e73e96b5c775dc0
1 /* { dg-do run } */
3 extern void abort (void);
4 void
5 foo (void *p_)
7 int *p;
8 int i;
9 for (i = 0; i < sizeof(int *); ++i)
10 ((char *)&p)[i] = ((char *)p_)[i];
11 *p = 1;
13 int main()
15 int i = 0;
16 int *p = &i;
17 foo (&p);
18 if (i != 1)
19 abort ();
20 return 0;