summaryrefslogtreecommitdiff
path: root/test/SemaCXX/wchar_t.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/wchar_t.cpp')
-rw-r--r--test/SemaCXX/wchar_t.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaCXX/wchar_t.cpp b/test/SemaCXX/wchar_t.cpp
index fc258da7d1a66..cb85bc3ae729a 100644
--- a/test/SemaCXX/wchar_t.cpp
+++ b/test/SemaCXX/wchar_t.cpp
@@ -7,3 +7,7 @@ void f(wchar_t p) {
signed wchar_t z; // expected-warning {{'wchar_t' cannot be signed or unsigned}}
++x;
}
+
+// PR4502
+wchar_t const c = L'c';
+int a[c == L'c' ? 1 : -1];