os-rust/src/test/run-pass/unreachable-code-1.rs

18 lines
251 B
Rust
Raw Normal View History

#![allow(unused_must_use)]
#![allow(unreachable_code)]
#![allow(unused_variables)]
#![allow(dead_code)]
fn id(x: bool) -> bool { x }
fn call_id() {
let c = panic!();
id(c);
}
2012-08-01 17:30:05 -07:00
fn call_id_3() { id(return) && id(return); }
pub fn main() {
}