gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-45.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O -fdump-tree-fre1" } */ |
| 3 | |
| 4 | struct S { float a, b; }; |
| 5 | |
| 6 | float |
| 7 | foo (int x, float y) |
| 8 | { |
| 9 | struct S z[1024]; |
| 10 | z[x].a = y; |
| 11 | struct S *p = &z[x]; |
| 12 | float *q = (float *) p; |
| 13 | return *q; |
| 14 | } |
| 15 | |
| 16 | /* { dg-final { scan-tree-dump "return y_\\d\+\\(D\\);" "fre1" } } */ |