]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-2.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-store-ccp-2.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized -fcommon" } */
3
4 const int conststaticvariable;
5
6 int f(void)
7 {
8 return conststaticvariable;
9 }
10
11 /* There should be a reference to conststaticvariable since it may
12 may be overriden at link time. */
13 /* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized" { xfail { *-*-mingw* *-*-cygwin* } } } } */