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