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