1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1" } */
3 
4 int a[256];
5 int *b, *c;
foo(int i,int j)6 void foo (int i, int j)
7 {
8   b = &a[i+j];
9   c = &a[i+j];
10 }
11 
12 /* We should remove the redundant address computation.  */
13 
14 /* { dg-final { scan-tree-dump-times " = &a" 1 "fre1" } } */
15