libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr88029.c
blobc169dd543cdd98b758d308050408c781f7f346c0
1 /* { dg-do compile } */
2 /* { dg-options "-O -w -fdump-tree-fre1-vops" } */
4 double foo (double) __attribute__ ((pure));
5 double (*fp) (double) __attribute__ ((const));
6 double f(double a)
8 fp = foo;
9 /* Verify when propagating foo to the call we preserve its constness. */
10 return fp (a);
13 /* { dg-final { scan-tree-dump "foo \\(a" "fre1" } } */
14 /* { dg-final { scan-tree-dump-times "VUSE" 1 "fre1" } } */