Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CXX / over / over.built / p19.cpp
blob0317f6b45a58d709146e601ad3075b38c2822bae
1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
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;
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;