]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/pr88087.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr88087.c
CommitLineData
07b9f1de 1/* { dg-do compile } */
13a43a90 2/* { dg-options "-O2 -fno-code-hoisting -fdump-tree-pre-stats" } */
07b9f1de
RB
3
4int f();
5int d;
13a43a90 6void c(int x)
07b9f1de 7{
13a43a90
RB
8 int (*fp)() __attribute__((const)) = (void *)f;
9 if (x)
10 d = fp ();
11 int tem = fp ();
12 f();
13 d = tem;
07b9f1de
RB
14}
15
13a43a90 16/* We shouldn't ICE and PRE the const call. */
07b9f1de 17/* { dg-final { scan-tree-dump "Eliminated: 1" "pre" } } */