18 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s3// expected-no-diagnostics4 5// Check types of char literals6extern char a;7extern __typeof('a') a;8extern int b;9extern __typeof('asdf') b;10extern wchar_t c;11extern __typeof(L'a') c;12#if __cplusplus >= 201103L13extern char16_t d;14extern __typeof(u'a') d;15extern char32_t e;16extern __typeof(U'a') e;17#endif18