OSDN Git Service

* gcc.target/i386/pr31628.c: Require effective target fpic.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / tree-ssa / ivopts-1.C
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ivopts" } */
3
4 struct Foo {
5   Foo() : s(1) {}
6   int s;
7 };
8 void foo(Foo&);
9 void bar(void)
10 {
11   Foo x[4];
12   foo(x[0]);
13 }
14
15 /* { dg-final { scan-tree-dump-not "-&x" "ivopts" } } */
16 /* { dg-final { scan-tree-dump-not "offset: (4294967292|0x0f+fc)" "ivopts" { xfail hppa*-*-* mips*-*-* } } } */
17 /* { dg-final { scan-tree-dump-not "&x\\\[5\\\]" "ivopts" } } */
18 /* { dg-final { cleanup-tree-dump "ivopts" } } */