Clang Project

clang_source_code/test/CXX/conv/conv.prom/p2.cpp
1// 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 -fwchar-type=short -fno-signed-wchar %s
3// expected-no-diagnostics
4
5#include <stdint.h>
6
7// In theory, the promoted types vary by platform; however, in reality they
8// are quite consistent across all platforms where clang runs.
9
10extern int promoted_wchar;
11extern decltype(+L'a') promoted_wchar;
12
13extern int promoted_char16;
14extern decltype(+u'a') promoted_char16;
15
16extern unsigned promoted_char32;
17extern decltype(+U'a') promoted_char32;
18