[NFC][TargetTransformInfo][VectorUtils] Consolidate `isVectorIntrinsic...` api (...
[llvm-project.git] / clang / test / CXX / over / over.built / p10.cpp
blob8ff2396d0b6f95fcde6178572542273558862dfb
1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
3 struct A{};
5 template <typename T>
6 void f(int i, float f, bool b, char c, int* pi, A* pa, T* pt) {
7 (void)+i;
8 (void)-i;
9 (void)+f;
10 (void)-f;
11 (void)+b;
12 (void)-b;
13 (void)+c;
14 (void)-c;
16 (void)-pi; // expected-error {{invalid argument type}}
17 (void)-pa; // expected-error {{invalid argument type}}
18 (void)-pt; // expected-error {{invalid argument type}}