xref: /llvm-project/clang/test/CXX/over/over.built/p11.cpp (revision 1595988ee6f9732e7ea79928af8a470ad5ef7dbe)
1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
2 
3 template <typename T>
f(int i,float f,bool b,char c,int * pi,T * pt)4 void f(int i, float f, bool b, char c, int* pi, T* pt) {
5   (void)~i;
6   (void)~f; // expected-error {{invalid argument type}}
7   (void)~b;
8   (void)~c;
9   (void)~pi; // expected-error {{invalid argument type}}
10   (void)~pt; // expected-error {{invalid argument type}}
11 }
12 
13