p2.cpp revision d4a282be92ee55a0b392e45ce4582231af271d27
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 -fshort-wchar %s 3 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; 17