clang/test/CXX/over/over.built/p19.cpp
raw| 1 | // RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare |
| 2 | |
| 3 | template <typename T> |
| 4 | void 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; // FIXME |
| 13 | 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; // FIXME |
| 23 | f -= t; |
| 24 | } |