Lines Matching full:default
3 void fn() = default; // expected-error {{only special member}}
5 void fn() = default; // expected-error {{only special member}}
7 foo() = default;
8 foo(const foo&) = default;
9 foo(foo&&) = default;
10 foo& operator = (const foo&) = default;
11 foo& operator = (foo&&) = default;
12 ~foo() = default;
24 bar::bar() = default;
25 bar::bar(const bar&) = default;
26 bar::bar(bar&&) = default;
27 bar& bar::operator = (const bar&) = default;
28 bar& bar::operator = (bar&&) = default;
29 bar::~bar() = default;
35 "bar's default constructor isn't trivial");
47 constexpr S() = default;
48 constexpr S(const S&) = default;
49 constexpr S(S&&) = default;
118 OdrUse use; // expected-note {{implicit default constructor for 'DefaultedFnExceptionSpec::OdrUse' first required here}}
130 X::X() = default; // expected-error {{redefinition}}
131 X::X(const X&) = default; // expected-error {{redefinition}}
132 X::X(X&&) = default; // expected-error {{redefinition}}
133 X &X::operator=(const X&) = default; // expected-error {{redefinition}}
134 X &X::operator=(X&&) = default; // expected-error {{redefinition}}
135 X::~X() = default; // expected-error {{redefinition}}
138 Y() = default;
139 Y(const Y&) = default;
140 Y(Y&&) = default;
141 Y &operator=(const Y&) = default;
142 Y &operator=(Y&&) = default;
143 ~Y() = default;
145 Y::Y() = default; // expected-error {{definition of explicitly defaulted}}
146 Y::Y(const Y&) = default; // expected-error {{definition of explicitly defaulted}}
147 Y::Y(Y&&) = default; // expected-error {{definition of explicitly defaulted}}
148 Y &Y::operator=(const Y&) = default; // expected-error {{definition of explicitly defaulted}}
149 Y &Y::operator=(Y&&) = default; // expected-error {{definition of explicitly defaulted}}
150 Y::~Y() = default; // expected-error {{definition of explicitly defaulted}}
171 Outer<T>::Inner2<T>::~Inner2() = default; // expected-error {{nested name specifier 'Outer<T>::Inner2<T>::' for declaration does not refer into a class, class template or class template partial specialization}} expected-error {{only special member functions may be defaulted}}
181 A() noexcept(true) = default;
182 ~A() noexcept(true) = default;
185 B() noexcept(false) = default; // expected-error {{does not match the calculated one}}
186 ~B() noexcept(false) = default; // expected-error {{does not match the calculated one}}