Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-array24.C
blob: 538969830bac19aa7632a2bb97efa6bfce4ee9ad [
file
] [
log
] [
blame
]
// PR c++/90951
// { dg-do compile { target c++11 } }
#define
assert
(
expr
)
static_assert
(
expr
,
#expr)
struct
S
{
const
char
a
[
2
];
};
constexpr
struct
S a
[
1
][
1
][
1
]
=
{
};
assert
(
'\0'
==
*
a
[
0
][
0
][
0
].
a
);