Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / vect / pr21734_1.cc
blobc65d9fcaa81398d5823df846390c4d270781d5d6
1 /* { dg-do compile } */
3 struct A
5 int a[4];
6 int& operator[](int i) { return a[i]; }
7 };
9 struct B : public A
11 int& operator[](int i) { return A::operator[](i); }
14 void foo(B &b)
16 for (int i=0; i<4; ++i)
17 b[i] = 0;
20 /* { dg-final { cleanup-tree-dump "vect" } } */