Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CXX / over / over.built / p22.cpp
blob330f1c923140740fc37b08ed8b75e9774cff4aed
1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
3 template <typename T>
4 void f(int* pi, T* pt, T t) {
5 pi += 3;
6 pi += pi; // expected-error {{invalid operands}}
7 pt += 3;
8 pi += t;
9 pi += pt; // FIXME
10 pt += pi; //FIXME
11 pt += pt; //FIXME