blob: 856128253f4d143baa34e3e49a6b8f685f24e55d [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-ivopts" } */
struct Foo {
Foo() : s(1) {}
int s;
};
void foo(Foo&);
void bar(void)
{
Foo x[4];
foo(x[0]);
}
/* { dg-final { scan-tree-dump-not "-&x" "ivopts" } } */
/* { dg-final { scan-tree-dump-not "offset: (4294967292|0x0f+fc)" "ivopts" } } */
/* { dg-final { scan-tree-dump-not "&x\\\[5\\\]" "ivopts" } } */