| Tim Shen | 43ee05e8 | 2016-11-01 00:19:04 +0000 | [diff] [blame] | 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 | } | ||||