llvm-project/clang/test/Parser/cxx-bool.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
179 B
C++
Raw Normal View History

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