llvm/clang/test/CXX/over/over.built/p6.cpp

// RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare

struct A{};

template <typename T>
void f(int* pi, A* pa, T* pt) {
  (void)++pi;
  (void)pi++;
  (void)--pi;
  (void)pi--;

  (void)++pa;
  (void)pa++;
  (void)--pa;
  (void)pa--;

  (void)++pt;
  (void)pt++;
  (void)--pt;
  (void)pt--;
}
// expected-no-diagnostics