Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-92015.C
blob: 60f288ee9939bb311a853fc534c9dedac0195846 [
file
] [
log
] [
blame
]
// PR c++/92015
// { dg-do compile { target c++11 } }
struct
S1
{
char
c
[
6
]
{
'h'
,
'e'
,
'l'
,
'l'
,
'o'
,
0
};
};
struct
S2
{
char
c
[
6
]
=
"hello"
;
};
static_assert
(
S1
{}.
c
[
0
]
==
'h'
,
""
);
static_assert
(
S2
{}.
c
[
0
]
==
'h'
,
""
);