blob: 31c88f3b8506f35280a370ff568c718dc995b444 [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 (&a[1] + i + 1 != &a[i+2])
link_error();
return 0;
}
/* { dg-final { scan-tree-dump-not "link_error" "optimized" } } */