teak-llvm/clang/test/Parser/cxx-bool.cpp
Aaron Ballman e8c0e558a4 Properly parse a postfix expression following a Boolean literal. Fixes PR34273.
Patch by Nicolas Lesser.

llvm-svn: 314463
2017-09-28 21:29:18 +00:00

12 lines
179 B
C++

// 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"];
}