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