mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
12 lines
219 B
Rust
12 lines
219 B
Rust
// skip-filecheck
|
|
// unit-test: DataflowConstProp
|
|
|
|
// EMIT_MIR boolean_identities.test.DataflowConstProp.diff
|
|
pub fn test(x: bool, y: bool) -> bool {
|
|
(y | true) & (x & false)
|
|
}
|
|
|
|
fn main() {
|
|
test(true, false);
|
|
}
|