blob: cb85bc3ae729a09f7f699a3d06ec29f6fff9cdde [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only -pedantic -verify %s
Argyrios Kyrtzidis64c438a2008-08-09 16:51:54 +00002wchar_t x;
3
4void f(wchar_t p) {
5 wchar_t x;
6 unsigned wchar_t y; // expected-warning {{'wchar_t' cannot be signed or unsigned}}
7 signed wchar_t z; // expected-warning {{'wchar_t' cannot be signed or unsigned}}
Argyrios Kyrtzidis2ff9b4c2008-08-17 13:24:01 +00008 ++x;
Argyrios Kyrtzidis64c438a2008-08-09 16:51:54 +00009}
Eli Friedmana3426752009-07-05 23:44:27 +000010
11// PR4502
12wchar_t const c = L'c';
13int a[c == L'c' ? 1 : -1];