summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/clang-keywords.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-13 23:21:44 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-13 23:21:44 +0000
commit83d61f914a0144567938394215f7f1eed5e4c088 (patch)
tree178391004b63e975fa9565d878e50b22b35bf8a0 /clang/test/Lexer/clang-keywords.cpp
parentd5c57a5ed4c4850d1cb73bb160a3ca2baabed06a (diff)
downloadbcm5719-llvm-83d61f914a0144567938394215f7f1eed5e4c088.tar.gz
bcm5719-llvm-83d61f914a0144567938394215f7f1eed5e4c088.zip
Add __char16_t and __char32_t as aliases for the C++0x char16_t and
char32_t, respectively, but which can also be used in C++98/03 mode. Fixes <rdar://problem/8418510>. llvm-svn: 113813
Diffstat (limited to 'clang/test/Lexer/clang-keywords.cpp')
-rw-r--r--clang/test/Lexer/clang-keywords.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Lexer/clang-keywords.cpp b/clang/test/Lexer/clang-keywords.cpp
new file mode 100644
index 00000000000..a349b44ade2
--- /dev/null
+++ b/clang/test/Lexer/clang-keywords.cpp
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+__char16_t c16;
+void f(__char32_t) { }
OpenPOWER on IntegriCloud