blob: 51fc1b3d2613d6d3172d5fd9b5117d931309b7dc [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized -fcommon" } */
const int conststaticvariable;
int f(void)
{
return conststaticvariable;
}
/* There should be a reference to conststaticvariable since it may
may be overriden at link time. */
/* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized" { xfail { *-*-mingw* *-*-cygwin* } } } } */