blob: 529b9c973223825e829d4fc7b7bbbe875ffb93a0 [file] [log] [blame]
/* { dg-do link } */
/* { dg-options "-O -fdump-tree-optimized" } */
extern void link_error(void);
int i;
int main()
{
int a[4];
if ((char*)&a[1] + 4*i + 4 != (char*)&a[i+2])
link_error();
return 0;
}
/* { dg-final { scan-tree-dump-not "link_error" "optimized" } } */