Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr69776-2.c
blobe5bb28d7fb4875464230edff38dbcd9c49b83769
1 /* { dg-do run } */
2 /* { dg-additional-options "-fstrict-aliasing" } */
4 extern void *malloc (__SIZE_TYPE__);
5 extern void abort (void);
7 __attribute__((noinline,noclone))
8 void f(int *qi, double *qd)
10 int i = *qi;
11 *qd = 0;
12 *qi = i;
15 int main()
17 int *p = malloc(sizeof(double));
19 *p = 1;
20 f(p, (double *)p);
21 if (*p != 1)
22 abort();
23 return 0;