gcc/testsuite/g++.dg/tree-ssa/ivopts-1.C
raw| 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" } } */ |
| 17 | /* { dg-final { scan-tree-dump-not "&x\\\[5\\\]" "ivopts" } } */ |