brintos

brintos / llvm-project-archived public Read only

0
0
Text · 417 B · 0317f6b Raw
25 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare2 3template <typename T>4void f(int i, float f, int* pi, T* pt, T t) {5  i = i;6  i *= i;7  i /= i;8  i += i;9  i -= i;10  i -= f;11  i -= pi; // expected-error {{invalid operands}}12  i -= pt; // FIXME13  i -= t;14 15  f = f;16  f *= f;17  f /= f;18  f += f;19  f -= f;20  f -= i;21  f -= pi; // expected-error {{invalid operands}}22  f -= pt; // FIXME23  f -= t;24}25