1 // RUN: %clang_cc1 %s -std=c++11 -emit-llvm -o - -triple=i686-linux-gnu | FileCheck %s
5 A
&operator=(const A
&);
11 B
&operator=(B
&&) = default;
14 // CHECK: define {{.*}} @_Z2f1
17 // CHECK: call {{.*}} @_ZN1BC1EOS_(
18 B
b(static_cast<B
&&>(x
));
21 // CHECK: define {{.*}} @_Z2f2
24 // CHECK: call {{.*}} @_ZN1BaSEOS_(
25 x
= static_cast<B
&&>(y
);
28 // CHECK: define {{.*}} @_ZN1BaSEOS_(
29 // CHECK: call {{.*}} @_ZN1AaSERKS_(
31 template<int> struct C
{ C() = default; };
36 template struct C
<0>; // was asserting
41 // Trivial default ctor, might or might not be defined, but we must not expect
42 // someone else to define it.
43 // CHECK-NOT: declare {{.*}} @_ZN1CILi0EEC1Ev
44 // CHECK: define {{.*}} @_ZN1DC1Ev
46 // CHECK: define {{.*}} @_ZN1BC2EOS_(
47 // CHECK: call {{.*}} @_ZN1AC1ERKS_(