Clang Project

clang_source_code/test/CXX/lex/lex.literal/lex.ccon/p1.cpp
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
6extern 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 >= 201103L
13extern char16_t d;
14extern __typeof(u'a') d;
15extern char32_t e;
16extern __typeof(U'a') e;
17#endif
18