1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
9 A(const A
&) = delete; // expected-note {{'A' has been explicitly marked deleted here}}
16 foo(a
); // expected-error {{call to deleted constructor of 'A'}}
27 A(const A
&) = default; // expected-note {{declared private here}}
34 foo(a
); // expected-error {{calling a private constructor of class 'test1::A'}}
38 // Don't enforce this in an unevaluated context.
41 A(const A
&) = delete; // expected-note {{marked deleted here}}
51 char check
[sizeof(meta(a
)) == 2 ? 1 : -1];
55 meta(a
); // expected-error {{call to deleted constructor}}