☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ctor21.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor21.C
code
plain
raw
1
// PR c++/83835
2
// { dg-do compile { target c++11 } }
3
4
struct Z
5
{
6
void const * p_;
7
constexpr Z( void const * p ): p_( p ) {}
8
~Z();
9
};
10
11
struct Y
12
{
13
Z z_;
14
constexpr Y() noexcept: z_( this ) {}
15
};