Clang Project

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