1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -fdump-tree-ivopts" } */ 3 4 struct Foo { FooFoo5 Foo() : s(1) {} 6 int s; 7 }; 8 void foo(Foo&); bar(void)9void 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" } } */ 18