2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / g++.dg / vect / pr21734_2.cc
blob58efedf18f3dba57a21270ab979b87505e22bbe4
1 /* { dg-do compile } */
3 struct A
5 int a[4];
6 int* operator[](int i) { return &a[i]; }
7 };
9 void foo(A a1, A &a2)
11 a1[1][1]=0;
12 for (int i=0; i<4; ++i)
13 a2.a[i]=0;
16 /* { dg-final { cleanup-tree-dump "vect" } } */