summaryrefslogtreecommitdiffstats
path: root/test/Parser/cxx-bool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/cxx-bool.cpp')
-rw-r--r--test/Parser/cxx-bool.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/Parser/cxx-bool.cpp b/test/Parser/cxx-bool.cpp
index a8a161edb1..21591d10e9 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"];
+}
+