Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CXX / over / over.built / p14.cpp
blobac9ba97e53578e27fd48a42c34d0a55149b32f9e
1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
3 template <typename T>
4 void f(int* pi, T* pt) {
5 (void)(pi+3);
6 (void)(3+pi);
7 (void)(pi-3);
8 (void)(pi[3]);
9 (void)(3[pi]);
11 (void)(pt+3);
12 (void)(3+pt);
13 (void)(pt-3);
14 (void)(pt[3]);
15 (void)(3[pt]);
17 // expected-no-diagnostics