summaryrefslogtreecommitdiffstats
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.cpp9
1 files changed, 9 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
new file mode 100644
index 0000000..7b65f7e
--- /dev/null
+++ b/test/CXX/lex/lex.literal/lex.ccon/p1.cpp
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+// Check types of char literals
+extern char a;
+extern __typeof('a') a;
+extern int b;
+extern __typeof('asdf') b;
+extern wchar_t c;
+extern __typeof(L'a') c;
OpenPOWER on IntegriCloud