aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/lex/lex.literal/lex.ccon/p1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/lex/lex.literal/lex.ccon/p1.cpp')
-rw-r--r--test/CXX/lex/lex.literal/lex.ccon/p1.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CXX/lex/lex.literal/lex.ccon/p1.cpp b/test/CXX/lex/lex.literal/lex.ccon/p1.cpp
index 7b65f7ee8320..5342153b63ba 100644
--- a/test/CXX/lex/lex.literal/lex.ccon/p1.cpp
+++ b/test/CXX/lex/lex.literal/lex.ccon/p1.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
// Check types of char literals
extern char a;
@@ -7,3 +8,9 @@ extern int b;
extern __typeof('asdf') b;
extern wchar_t c;
extern __typeof(L'a') c;
+#if __cplusplus >= 201103L
+extern char16_t d;
+extern __typeof(u'a') d;
+extern char32_t e;
+extern __typeof(U'a') e;
+#endif