2 // { dg-options "-Wabi -fabi-version=1" }
3 // On ARM processors, the alignment of B will be 4 even though it
4 // contains only a single "char". That would avoids the situation
5 // that the warning below is designed to catch. We therefore
6 // explicitly set the default structure alignment to 1.
7 // { dg-options "-Wabi -fabi-version=1 -mstructure-size-boundary=8" { target arm*-*-* } }
9 struct A { virtual void f(); char c1; };
10 struct B { B(); char c2; };
11 struct C : public A, public virtual B {}; // { dg-warning "ABI" }