1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
2 
3 struct A{};
4 
5 template <typename T>
f(int i,float f,bool b,char c,int * pi,A * pa,T * pt)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;
15 
16   (void)-pi; // expected-error {{invalid argument type}}
17   (void)-pa; // expected-error {{invalid argument type}}
18   (void)-pt; // FIXME: we should be able to give an error here.
19 }
20 
21