summary refs log tree commit diff
path: root/src/test/ui/if/if-loop.rs
blob: c799df23800137f39c0d37a9a29f77134c59d993 (plain)
1
2
3
4
5
6
7
8
9
10
// compile-pass
// skip-codegen
#![allow(warnings)]
// This used to ICE because the "if" being unreachable was not handled correctly
fn err() {
    if loop {} {}
}


fn main() {}