13 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare2 3template <typename T>4void 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