1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
4 NoDefault() = delete; // expected-note {{here}}
7 struct Explicit
{ // expected-note 2 {{candidate}} expected-note {{here}}
8 explicit Explicit(int); // expected-note {{not a candidate}}
12 NoCopy(const NoCopy
&) = delete; // expected-note {{here}}
16 NoMove(NoMove
&&) = delete; // expected-note {{here}}
19 Private(int); // expected-note {{here}}
32 Explicit e1
; // expected-note {{here}}
33 Explicit e2
= 42; // expected-error {{no viable conversion}}
34 NoCopy nc
= NoCopy(); // expected-error {{call to deleted}}
35 NoMove nm
= NoMove(); // expected-error {{call to deleted}}
36 Private p
= 42; // expected-error {{private constructor}}
39 S() {} // expected-error {{call to deleted constructor of 'NoDefault'}} \
40 expected
-error
{{must explicitly initialize the member
'e1' which does
not have a
default constructor
}}
41 S(int) : nd1(42), e1(42) {}
44 // FIXME: test the other forms which use copy-initialization