Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ctor14.C
blob: 17309952886ab54aa6e76b5cadad1dc63c5ba1aa [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
A
{
void
*
p
;
constexpr
A
():
p
(
this
)
{}
};
constexpr
A a
;
constexpr
A b
=
A
();
#define
SA
(
X
)
static_assert
((
X
),
#X)
SA
(
a
.
p
==
&
a
);
SA
(
b
.
p
==
&
b
);