]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/die-macro.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[rust.git] / src / test / ui / macros / die-macro.rs
1 // run-pass
2 #![allow(dead_code)]
3 // Just testing that panic!() type checks in statement or expr
4
5
6 #![allow(unreachable_code)]
7
8 fn f() {
9     panic!();
10
11     let _x: isize = panic!();
12 }
13
14 pub fn main() {
15
16 }