1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s |
3 | // expected-no-diagnostics |
4 | |
5 | // Check types of char literals |
6 | extern char a; |
7 | extern __typeof('a') a; |
8 | extern int b; |
9 | extern __typeof('asdf') b; |
10 | extern wchar_t c; |
11 | extern __typeof(L'a') c; |
12 | #if __cplusplus >= 201103L |
13 | extern char16_t d; |
14 | extern __typeof(u'a') d; |
15 | extern char32_t e; |
16 | extern __typeof(U'a') e; |
17 | #endif |
18 |