1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -ffreestanding %s 2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -fshort-wchar -ffreestanding %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 9 extern int promoted_wchar; 10 extern decltype(+L'a') promoted_wchar; 11 12 extern int promoted_char16; 13 extern decltype(+u'a') promoted_char16; 14 15 extern unsigned promoted_char32; 16 extern decltype(+U'a') promoted_char32; 17