2023-10-16 12:36:39 -05:00
|
|
|
// skip-filecheck
|
2023-04-15 12:00:43 -05:00
|
|
|
// 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);
|
|
|
|
}
|