Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git] / gcc / testsuite / g++.dg / inherit / virtual10.C
blob4cb858b9293171b0d1b24809989b89cd95a66d1c
1 // PR c++/14263
3 struct A { };
5 struct B : virtual A { };
7 int main()
9    A* p = new B;
10    B* q = static_cast<B*>(p);  // { dg-error "cannot convert from pointer to base class 'A' to pointer to derived class 'B' because the base is virtual" }