diff options
Diffstat (limited to 'test/Parser/cxx-bool.cpp')
-rw-r--r-- | test/Parser/cxx-bool.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/Parser/cxx-bool.cpp b/test/Parser/cxx-bool.cpp index a8a161edb105b..21591d10e9064 100644 --- a/test/Parser/cxx-bool.cpp +++ b/test/Parser/cxx-bool.cpp @@ -1,4 +1,11 @@ -// RUN: %clang_cc1 -fsyntax-only %s +// RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics bool a = true; bool b = false; + +namespace pr34273 { + char c = "clang"[true]; + char d = true["clang"]; +} + |