blob: 2f982124f3e717c35652311a02e9d779fccdf83a [file] [log] [blame]
// { dg-additional-options "-fmodules-ts -Wno-pedantic" }
// Test bits and pieces of merging information
// from class defs into forward declarations
struct Align;
struct Final;
struct NeedsConstructing;
import "class-10_a.H";
static_assert(alignof(Align) == 16);
struct TestFinal : Final {}; // { dg-error "cannot derive" }
struct TestNeedsConstructing {
struct {
NeedsConstructing a; // { dg-error "with constructor not allowed in anonymous aggregate" }
};
};