| 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 | |
| 11 | void Foo() { |
| 12 | if (False && A()) { |
| 13 | Bar(); // expected-no-diagnostics |
| 14 | } |
| 15 | } |
| 16 |