blob: 15e5657a4ff2a138a566fb9bd54ed6eb1ab8f66d [file] [log] [blame]
// { dg-do compile { target c++11 } }
struct A
{
int i;
constexpr A(int, int i = num): i(i) {}
private:
static const int num = 42;
};
struct B: A
{
using A::A;
};
constexpr B b(24);
#define SA(X) static_assert((X),#X)
SA(b.i == 42);