1 /* { dg-do compile } */
2 /* { dg-skip-if "" { *-*-darwin* hppa*64*-*-* } { "*" } { "" } } */
3 /* { dg-options "-O2 -fno-common -fdump-tree-optimized" } */
5 const int conststaticvariable
;
9 return conststaticvariable
;
12 /* There should be no reference for nonpic targets to
13 conststaticvariable as we should have inlined the 0. */
14 /* { dg-final { scan-tree-dump-times "conststaticvariable" 0 "optimized" { target nonpic } } } */
15 /* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized" { target { ! nonpic } } } } */
16 /* { dg-final { cleanup-tree-dump "optimized" } } */