rust/tests/ui/codegen/const-bool-bitcast.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
300 B
Rust
Raw Normal View History

// This is a regression test for https://github.com/rust-lang/rust/issues/118047
//@ build-pass
//@ compile-flags: -Zmir-opt-level=0 -Zmir-enable-passes=+DataflowConstProp
#![crate_type = "lib"]
pub struct State {
inner: bool
}
pub fn make() -> State {
State {
inner: true
}
}