Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-array7.C
blob: 8f74675f27b7e63733c15ba1fb62c4656173d781 [
file
] [
log
] [
blame
]
// PR c++/61994
// { dg-do compile { target c++11 } }
struct
A
{
int
i
,
j
;
};
struct
X
{
A a
=
{
1
,
1
};
};
constexpr
X table
[
1
][
1
]
=
{{
{}
}};
#define
SA
(
X
)
static_assert
(
X
,#
X
)
SA
(
table
[
0
][
0
].
a
.
i
==
1
);