blob: 6549a1a0bdaaa2087f44207fa01e82ca4a7e8037 [file] [log] [blame]
David Blaikied4a282b2012-09-20 18:57:53 +00001// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -triple x86_64-pc-linux-gnu -ffreestanding %s
2// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -triple x86_64-pc-linux-gnu -ffreestanding -fshort-wchar %s
Eli Friedman68a2dc42011-10-26 07:22:48 +00003
4#include <stdint.h>
5
6// In theory, the promoted types vary by platform; however, in reality they
7// are quite consistent across all platforms where clang runs.
8
9extern int promoted_wchar;
10extern decltype(+L'a') promoted_wchar;
11
12extern int promoted_char16;
13extern decltype(+u'a') promoted_char16;
14
15extern unsigned promoted_char32;
16extern decltype(+U'a') promoted_char32;