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