1 // RUN: %clang_cc1 -std=c++11 -verify %s
3 // Note: [class.inhctor] was removed by P0136R1. This tests the new behavior
4 // for the wording that used to be there.
7 constexpr A(const int&) : rval(false) {}
8 constexpr A(const int&&) : rval(true) {}
21 static_assert(a0
.rval
&& !a1
.rval
&& b0
.rval
&& !b1
.rval
, "");
24 template<typename T
> constexpr C(T t
) : v(t
) {}
27 struct D
: C
{ // #defined-here
30 static_assert(D(123).v
== 123, "");
32 template<typename T
> constexpr D::D(T t
) : C(t
) {} // expected-error {{does not match any declaration in 'D'}}
33 // expected-note@#defined-here {{defined here}}