summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/cxx-wchar_t.cpp
blob: 43dd6ee994298ed28eb97ec1b0dd4a96965ea0ae (plain)
1
2
3
4
5
6
7
8
// 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}}
}
OpenPOWER on IntegriCloud