Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-70001-2.C
blob: 96f5ad42398c5f7614f84381748fe549e98eb478 [
file
] [
log
] [
blame
]
// PR c++/70001
// { dg-do run { target c++11 } }
struct
B
{
struct
B
*
a
;
constexpr
B
()
:
a
(
this
)
{
}
};
constexpr
int
N
=
1
<<
4
;
struct
A
{
B c
[
N
];
}
d
;
int
main
()
{
for
(
int
i
=
0
;
i
<
N
;
++
i
)
if
(
d
.
c
[
i
].
a
!=
&
d
.
c
[
i
])
__builtin_abort
();
}