Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/pr88029.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -w -fdump-tree-fre1-vops" } */ double foo (double) __attribute__ ((pure)); double (*fp) (double) __attribute__ ((const)); double f(double a) { fp = foo; /* Verify when propagating foo to the call we preserve its constness. */ return fp (a); } /* { dg-final { scan-tree-dump "foo \\(a" "fre1" } } */ /* { dg-final { scan-tree-dump-times "VUSE" 1 "fre1" } } */