xref: /llvm-project/clang/test/SemaCXX/PR29152.cpp (revision 43ee05e804b89ea06ce3fe25d70e4a662e2f4518)
1 // RUN: %clang_cc1 -fsyntax-only -Wunreachable-code -verify %s
2 
3 static const bool False = false;
4 
5 struct A {
6   ~A();
7   operator bool();
8 };
9 void Bar();
10 
Foo()11 void Foo() {
12   if (False && A()) {
13     Bar(); // expected-no-diagnostics
14   }
15 }
16