about summary refs log tree commit diff
path: root/tests/incremental/mir-opt.rs
blob: 04b82d9ea7fd4c20ca46d4560ac356e8fc6f9306 (plain)
1
2
3
4
5
6
7
8
9
10
11
// MIR optimizations can create expansions after the TyCtxt has been created.
// This test verifies that those expansions can be decoded correctly.

//@ revisions:rpass1 rpass2
//@ compile-flags: -Z query-dep-graph -Z mir-opt-level=3

fn main() {
    if std::env::var("a").is_ok() {
        println!("b");
    }
}