blob: 99603106512dc8c8ea7e2199005af6f02237ccaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// { dg-options -std=c++11 }
struct A
{
int i;
constexpr A(int i): i(i) {}
};
struct B: A
{
using A::A;
};
constexpr B b(42);
#define SA(X) static_assert((X),#X)
SA(b.i == 42);
|