Skip to content
Snippets Groups Projects
Commit 87764904 authored by Douglas Gregor's avatar Douglas Gregor
Browse files

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>.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113813 91177308-0d34-0410-b5e6-96231b3b80d8
parent 1f60d9ea
No related branches found
No related tags found
No related merge requests found
......@@ -381,6 +381,11 @@ ALIAS("_uuidof" , __uuidof , KEYMS | KEYBORLAND)
// Borland Extensions which should be disabled in strict conformance mode.
ALIAS("_pascal" , __pascal , KEYBORLAND)
// Clang Extensions.
ALIAS("__char16_t" , char16_t , KEYCXX)
ALIAS("__char32_t" , char32_t , KEYCXX)
//===----------------------------------------------------------------------===//
// Objective-C @-preceeded keywords.
//===----------------------------------------------------------------------===//
......
// RUN: %clang_cc1 -fsyntax-only -verify %s
__char16_t c16;
void f(__char32_t) { }
// RUN: %clang_cc1 %s -fsyntax-only
// RUN: %clang_cc1 %s -verify -fsyntax-only
int static_assert;
int char16_t;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment