[NFC][TargetTransformInfo][VectorUtils] Consolidate `isVectorIntrinsic...` api (...
[llvm-project.git] / clang / test / CXX / over / over.built / p6.cpp
blobca81c9aecce86d58caabfdf9f6c04aa152473fd6
1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
3 struct A{};
5 template <typename T>
6 void f(int* pi, A* pa, T* pt) {
7 (void)++pi;
8 (void)pi++;
9 (void)--pi;
10 (void)pi--;
12 (void)++pa;
13 (void)pa++;
14 (void)--pa;
15 (void)pa--;
17 (void)++pt;
18 (void)pt++;
19 (void)--pt;
20 (void)pt--;
22 // expected-no-diagnostics