* gcc.dg/compat/struct-by-value-5a_main.c,
[official-gcc.git] / gcc / testsuite / g++.dg / abi / vbase10.C
bloba0d113ade79bae3f9007f4ff82292a245642d7e8
1 // { dg-do compile }
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" }