2 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -include %s %s
4 // RUN: %clang_cc1 -x c++-header -std=c++11 -emit-pch -o %t %s
5 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -include-pch %t %s
7 // RUN: %clang_cc1 -x c++-header -std=c++11 -emit-pch -fpch-instantiate-templates -o %t %s
8 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -include-pch %t %s
27 A(const A
&) = default;
28 template<typename T
> A(T
&&);
33 foo::foo() { } // expected-error{{definition of explicitly defaulted default constructor}}
36 f
.bar(); // expected-error{{deleted function}} expected-note@15{{deleted here}}
39 baz bz
; // expected-error{{deleted function}} expected-note@19{{deleted here}}
40 quux qx
; // expected-error{{private destructor}} expected-note@23{{private here}}
43 struct C
{ mutable A a
; };
44 static_assert(__is_trivially_constructible(B
, const B
&), "");
45 static_assert(!__is_trivially_constructible(B
, B
&&), "");
46 static_assert(!__is_trivially_constructible(C
, const C
&), "");
47 static_assert(!__is_trivially_constructible(C
, C
&&), "");