PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / alias-30.c
blob779a7f443da18f7aaa9b538150c4be009390de9f
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1-details" } */
4 extern int posix_memalign(void **memptr,
5 __SIZE_TYPE__ alignment, __SIZE_TYPE__ size);
7 int foo (float *p)
9 int res = *p;
10 int *q;
11 void *tem;
12 if (posix_memalign (&tem, 128, 128 * sizeof (int)) != 0)
13 return 0;
14 q = (int *)tem;
15 *q = 1;
16 return res + *p;
19 /* We should be able to CSE the load from *p in the return stmt. */
21 /* { dg-final { scan-tree-dump "Replaced \\\*p" "fre1" } } */