1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
3 template <typename T
, typename U
>
4 void f(int i
, float f
, bool b
, int* pi
, T
* pt
, T t
) {
6 f
%= 3; // expected-error {{invalid operands}}
8 pi
%= 3; // expected-error {{invalid operands}}
13 f
&= 3; // expected-error {{invalid operands}}
15 pi
&= 3; // expected-error {{invalid operands}}
20 f
^= 3; // expected-error {{invalid operands}}
22 pi
^= 3; // expected-error {{invalid operands}}
27 f
|= 3; // expected-error {{invalid operands}}
29 pi
|= 3; // expected-error {{invalid operands}}
34 f
<<= 3; // expected-error {{invalid operands}}
36 pi
<<= 3; // expected-error {{invalid operands}}
41 f
>>= 3; // expected-error {{invalid operands}}
43 pi
>>= 3; // expected-error {{invalid operands}}