diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-07-29 01:08:54 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-07-29 01:08:54 +0000 |
commit | 53afad5ebbfd47e932405af5b93177ea0d68e3f4 (patch) | |
tree | 41f62f76b8462e6942b4d4600086bf870bd96a99 /test/CXX/lex | |
parent | eda61584120f59a35d4493b0af4bed717494e826 (diff) |
This patch makes the string/character literal tests run in C,
C++98/03, and C++0x mode, from Craig Topper!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/lex')
-rw-r--r-- | test/CXX/lex/lex.literal/lex.ccon/p1.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CXX/lex/lex.literal/lex.ccon/p1.cpp b/test/CXX/lex/lex.literal/lex.ccon/p1.cpp index 6df035d63f..b263036bed 100644 --- a/test/CXX/lex/lex.literal/lex.ccon/p1.cpp +++ b/test/CXX/lex/lex.literal/lex.ccon/p1.cpp @@ -1,5 +1,5 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s -// Runs in c++0x mode so that char16_t and char32_t are available. // Check types of char literals extern char a; @@ -8,7 +8,9 @@ extern int b; extern __typeof('asdf') b; extern wchar_t c; extern __typeof(L'a') c; +#if __cplusplus >= 201103L extern char16_t d; extern __typeof(u'a') d; extern char32_t e; extern __typeof(U'a') e; +#endif |