summaryrefslogtreecommitdiffstats
path: root/src/test/ui/expr/if/attrs/gate-whole-expr.rs
blob: 63772d54b531dacdaca24a706900e90abf75683f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass

fn main() {
    let x = 1;

    #[cfg(FALSE)]
    if false {
        x = 2;
    } else if true {
        x = 3;
    } else {
        x = 4;
    }
    assert_eq!(x, 1);
}