aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/wchar_t.cpp
blob: e3cd77a195fa18c004eccc97a3c17f6f082b9ae1 (plain)
1
2
3
4
5
6
7
8
9
// RUN: clang -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;
}