blob: 652660d473b15cc4afdd7d2dd517635dc63da2e2 [file] [log] [blame]
//@ build-pass
//@ compile-flags: -g -O
// Regression test for #147485.
#![crate_type = "lib"]
pub fn foo(a: bool, b: bool) -> bool {
let mut c = &a;
if false {
return *c;
}
let d = b && a;
if d {
c = &b;
}
b
}