rust/src/test/run-pass/unsafe-fn-called-from-unsafe-fn.rs
2018-12-25 21:08:33 -07:00

16 lines
199 B
Rust

#![allow(dead_code)]
//
// See also: compile-fail/unsafe-fn-called-from-safe.rs
// pretty-expanded FIXME #23616
unsafe fn f() { return; }
unsafe fn g() {
f();
}
pub fn main() {
return;
}