Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / ivopts-1.C
blob0eaa0fb254c61f889d2251932becf39f467d1d18
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ivopts" } */
4 struct Foo {
5   Foo() : s(1) {}
6   int s;
7 };
8 void foo(Foo&);
9 void bar(void)
11   Foo x[4];
12   foo(x[0]);
15 /* { dg-final { scan-tree-dump-not "-&x" "ivopts" } } */
16 /* { dg-final { scan-tree-dump-not "offset: (4294967292|0x0f+fc)" "ivopts" } } */
17 /* { dg-final { scan-tree-dump-not "&x\\\[5\\\]" "ivopts" } } */
18 /* { dg-final { cleanup-tree-dump "ivopts" } } */