blob: 37e4a53a7a9b220ed2e92f2b249f8cdcce0390ea [file] [log] [blame]
// PR c++/80294
// { dg-do compile { target c++14 } }
// { dg-final { scan-assembler-not "static_init" } }
struct A {
constexpr int f() { A a = *this; return 42; }
};
struct B: A
{
int i;
constexpr B(): i(f()) {}
};
B b;