]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/issue-18576.rs
Auto merge of #63994 - Centril:refactor-qualify-consts, r=spastorino,oli-obk
[rust.git] / src / test / run-fail / issue-18576.rs
1 // error-pattern:stop
2
3 // #18576
4 // Make sure that calling an extern function pointer in an unreachable
5 // context doesn't cause an LLVM assertion
6
7 #[allow(unreachable_code)]
8 fn main() {
9     panic!("stop");
10     let pointer = other;
11     pointer();
12 }
13 extern "C" fn other() {}