Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git] / gcc / testsuite / g++.dg / vect / pr21734_1.cc
blobdc3ab4bae8b3f8ce2377d73a3cd6e35050e171fe
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;