Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor1.C
blob: c656fb9a2339c2ae09d4af08119b5bfb7356e826 [
file
] [
log
] [
blame
]
// { dg-do compile { target 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
);