[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / SemaCXX / PR29152.cpp
blob63c9c9bed545675375df956e72b10c611ed8b118
1 // RUN: %clang_cc1 -fsyntax-only -Wunreachable-code -verify %s
3 static const bool False = false;
5 struct A {
6 ~A();
7 operator bool();
8 };
9 void Bar();
11 void Foo() {
12 if (False && A()) {
13 Bar(); // expected-no-diagnostics