Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
);