1 // RUN: %clang_cc1 -std=c++20 -verify -Wno-unused %s
3 template<typename T
, typename U
>
4 void operator->*(T
, U
);
6 template<typename T
, typename U
>
9 template<typename T
, typename U
>
12 template<typename T
, typename U
>
15 template<typename T
, typename U
>
18 template<typename T
, typename U
>
21 template<typename T
, typename U
>
24 template<typename T
, typename U
>
27 template<typename T
, typename U
>
30 template<typename T
, typename U
>
31 void operator+=(T
, U
);
33 template<typename T
, typename U
>
34 void operator-=(T
, U
);
36 template<typename T
, typename U
>
37 void operator*=(T
, U
);
39 template<typename T
, typename U
>
40 void operator/=(T
, U
);
42 template<typename T
, typename U
>
43 void operator%=(T
, U
);
45 template<typename T
, typename U
>
46 void operator^=(T
, U
);
48 template<typename T
, typename U
>
49 void operator&=(T
, U
);
51 template<typename T
, typename U
>
52 void operator|=(T
, U
);
54 template<typename T
, typename U
>
55 void operator==(T
, U
);
57 template<typename T
, typename U
>
58 void operator!=(T
, U
);
60 template<typename T
, typename U
>
63 template<typename T
, typename U
>
66 template<typename T
, typename U
>
67 void operator<=(T
, U
);
69 template<typename T
, typename U
>
70 void operator>=(T
, U
);
72 template<typename T
, typename U
>
73 void operator<=>(T
, U
);
75 template<typename T
, typename U
>
76 void operator&&(T
, U
);
78 template<typename T
, typename U
>
79 void operator||(T
, U
);
81 template<typename T
, typename U
>
82 void operator<<(T
, U
);
84 template<typename T
, typename U
>
85 void operator>>(T
, U
);
87 template<typename T
, typename U
>
88 void operator<<=(T
, U
);
90 template<typename T
, typename U
>
91 void operator>>=(T
, U
);
93 template<typename T
, typename U
>
121 void operator++(T
, int);
124 void operator--(T
, int);
132 -y
; // expected-error {{invalid argument type 'auto *' to unary expression}}
134 ~y
; // expected-error {{invalid argument type 'auto *' to unary expression}}
173 template void f
<int>(int*);