Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-array10.C
blob: f7aaa4b943e2f037c95269b4126e8f75a31035d8 [
file
] [
log
] [
blame
]
// PR c++/64899
// { dg-do compile { target c++11 } }
struct
S
{
int
i
;
constexpr
S
():
i
(
42
)
{}
};
constexpr
S sa
[
2
];
#define
SA
(
X
)
static_assert
((
X
),#
X
)
SA
(
sa
[
1
].
i
==
42
);