]> git.lizzy.rs Git - rust.git/blob - tests/incremental/mir-opt.rs
Rollup merge of #107706 - tgross35:atomic-as-mut-ptr, r=m-ou-se
[rust.git] / tests / incremental / mir-opt.rs
1 // MIR optimizations can create expansions after the TyCtxt has been created.
2 // This test verifies that those expansions can be decoded correctly.
3
4 // revisions:rpass1 rpass2
5 // compile-flags: -Z query-dep-graph -Z mir-opt-level=3
6
7 fn main() {
8     if std::env::var("a").is_ok() {
9         println!("b");
10     }
11 }