summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-36856.rs
blob: 5657ba69f9449eb9d7e3bc9bcfa6f284acbf00a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// run-pass
// Regression test for #36856.

// compile-flags:-g
// ignore-asmjs wasm2js does not support source maps yet

fn g() -> bool {
    false
}

pub fn main() {
    let a = !g();
    if a != !g() {
        panic!();
    }
}