]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/wchar_t.cpp
Update clang to r86025.
[FreeBSD/FreeBSD.git] / test / SemaCXX / wchar_t.cpp
1 // RUN: clang-cc -fsyntax-only -pedantic -verify %s 
2 wchar_t x;
3
4 void 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}}
8   ++x;
9 }
10
11 // PR4502
12 wchar_t const c = L'c';
13 int a[c == L'c' ? 1 : -1];