blob: 0630e18ee0c0bf4a1fed213af4055e4b1ce5de6f [file] [log] [blame]
// PR c++/91360 - Implement C++20 P1143R2: constinit
// { dg-do compile { target c++20 } }
struct S { };
constinit extern S s;
constinit S s2 = { };
struct T {
int i;
};
constinit T t;
struct U : T {
int j;
};
constinit U u;