18 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -triple x86_64-pc-linux-gnu -ffreestanding %s2// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -triple x86_64-pc-linux-gnu -ffreestanding -fwchar-type=short -fno-signed-wchar %s3// expected-no-diagnostics4 5#include <stdint.h>6 7// In theory, the promoted types vary by platform; however, in reality they8// 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