Home | History | Annotate | Download | only in dcl.fct.def.default

Lines Matching refs:S1

5 struct S1 {
6 constexpr S1() = default; // expected-error {{defaulted definition of default constructor is not constexpr}}
7 constexpr S1(const S1&) = default;
8 constexpr S1(S1&&) = default;
9 constexpr S1 &operator=(const S1&) = default; // expected-error {{explicitly-defaulted copy assignment operator may not have}}
10 constexpr S1 &operator=(S1&&) = default; // expected-error {{explicitly-defaulted move assignment operator may not have}}
11 constexpr ~S1() = default; // expected-error {{destructor cannot be marked constexpr}}