mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 06:18:56 -04:00

Summary: Fixes pr29152. Reviewers: rsmith, pirama, krememek Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D24010 llvm-svn: 285657
16 lines
231 B
C++
16 lines
231 B
C++
// RUN: %clang_cc1 -fsyntax-only -Wunreachable-code -verify %s
|
|
|
|
static const bool False = false;
|
|
|
|
struct A {
|
|
~A();
|
|
operator bool();
|
|
};
|
|
void Bar();
|
|
|
|
void Foo() {
|
|
if (False && A()) {
|
|
Bar(); // expected-no-diagnostics
|
|
}
|
|
}
|