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