Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-delegating.C
blob: f32dde60eae70ae0822f9e9912239ae6833d3115 [
file
] [
log
] [
blame
]
// PR c++/51526
// { dg-do compile { target c++11 } }
const
int
j
=
42
;
struct
S
{
int
i
;
constexpr
S
(
int
i
)
:
i
(
i
)
{}
constexpr
S
()
:
S
(
j
)
{}
};
constexpr
S s
{};
#define
SA
(
X
)
static_assert
((
X
),#
X
)
SA
(
s
.
i
==
42
);