re PR tree-optimization/22279 (ICE in first_vi_for_offset, at tree-ssa-structalias...
[gcc.git] / gcc / testsuite / g++.dg / tree-ssa / pr21082.C
1 /* { dg-do link } */
2
3 void link_error();
4
5 int a[4];
6 long b, c;
7
8 int main()
9 {
10 if (&a[b] - &a[c] != b - c)
11 link_error();
12 return 0;
13 }