freebsd-nq/test/SemaCXX/wchar_t.cpp
2009-06-02 17:58:47 +00:00

10 lines
275 B
C++

// RUN: clang-cc -fsyntax-only -pedantic -verify %s
wchar_t x;
void f(wchar_t p) {
wchar_t x;
unsigned wchar_t y; // expected-warning {{'wchar_t' cannot be signed or unsigned}}
signed wchar_t z; // expected-warning {{'wchar_t' cannot be signed or unsigned}}
++x;
}