OSDN Git Service

* gcc.dg/vect/vect-105.c: Prevent compiler from hoisting abort
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-store-ccp-3.c
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { *-*-darwin* hppa*64*-*-* } { "*" } { "" } } */
3 /* { dg-options "-O2 -fno-common -fdump-tree-optimized" } */
4
5 const int conststaticvariable;
6
7 int f(void)
8 {
9   return conststaticvariable;
10 }
11
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" } } */