Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor2.C
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
);