aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/MicrosoftCompatibility.cpp
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2012-07-22 11:32:41 +0000
committerFrancois Pichet <pichet2000@gmail.com>2012-07-22 11:32:41 +0000
commitdfd110ce5e64077ec94df195233e7a39895bf15e (patch)
tree81ca0f4bd954109cc4529d293ff1d15856c7b7f5 /test/SemaCXX/MicrosoftCompatibility.cpp
parent8986e108e04a4fbe9248f87708410bb073940d7b (diff)
char16_t and char32_t are defined via typedef in MSVC 11 RC. So introduce a way to disable keywords under Microsoft mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/MicrosoftCompatibility.cpp')
-rw-r--r--test/SemaCXX/MicrosoftCompatibility.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/SemaCXX/MicrosoftCompatibility.cpp b/test/SemaCXX/MicrosoftCompatibility.cpp
index 3634fa3462..74d54ef994 100644
--- a/test/SemaCXX/MicrosoftCompatibility.cpp
+++ b/test/SemaCXX/MicrosoftCompatibility.cpp
@@ -1,6 +1,8 @@
// RUN: %clang_cc1 %s -triple i686-pc-win32 -fsyntax-only -std=c++11 -Wmicrosoft -verify -fms-compatibility -fexceptions -fcxx-exceptions
+typedef unsigned short char16_t;
+typedef unsigned int char32_t;
namespace ms_conversion_rules {