1 // RUN: %clang_cc1 -std=c++2a -triple %itanium_abi_triple -emit-llvm %s -o - | FileCheck %s
3 #include "Inputs/std-compare.h"
8 // CHECK-SAME: @_ZN1X1xEv
10 friend auto operator<=>(X
, X
) = default;
14 virtual A
&operator=(const A
&);
15 friend auto operator<=>(Y
, Y
) = default;
18 // CHECK-SAME: @_ZN1A1fEv
20 // CHECK-SAME: @_ZNKR1AssERKS_
21 virtual std::strong_ordering
operator<=>(const A
&) const & = default;
22 // CHECK-SAME: @_ZN1A1gEv
24 // CHECK-SAME: @_ZN1A1hEv
27 // CHECK-SAME: @_ZN1AaSERKS_
28 // implicit virtual A &operator=(const A&) = default;
30 // CHECK-SAME: @_ZN1AD1Ev
31 // CHECK-SAME: @_ZN1AD0Ev
32 // implicit virtual ~A();
34 // CHECK-SAME: @_ZNKR1AeqERKS_
35 // implicit virtual A &operator==(const A&) const & = default;
39 // CHECK-SAME: @_ZTI1A
41 // CHECK-SAME: @_ZThn{{[0-9]*}}_N1AD1Ev
42 // CHECK-SAME: @_ZThn{{[0-9]*}}_N1AD0Ev
45 // CHECK-SAME: @_ZThn{{[0-9]*}}_N1AaSERKS_
46 // virtual A &operator=(const A &);