Fix all tests that fail with -sanitize=return.
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / ivopts-1.C
blob856128253f4d143baa34e3e49a6b8f685f24e55d
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" } } */