blob: 7ebf16b95439f6dd5c88f86c2984c3ef2f9a495b [file] [log] [blame]
// RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
template <typename T>
void f(int i, float f, bool b, char c, int* pi, T* pt) {
(void)~i;
(void)~f; // expected-error {{invalid argument type}}
(void)~b;
(void)~c;
(void)~pi; // expected-error {{invalid argument type}}
(void)~pt; // FIXME: we should be able to give an error here.
}