Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-ctor21.C

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 };