David Blaikie | d4a282b | 2012-09-20 18:57:53 +0000 | [diff] [blame] | 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 |
Eli Friedman | 68a2dc4 | 2011-10-26 07:22:48 +0000 | [diff] [blame] | 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; |