]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/unsafe-fn-called-from-unsafe-fn.rs
it is also legal to call unsafe functions from other unsafe functions
[rust.git] / src / test / run-pass / unsafe-fn-called-from-unsafe-fn.rs
1 // -*- rust -*-
2 //
3 // See also: compile-fail/unsafe-fn-called-from-safe.rs
4
5 unsafe fn f() { ret; }
6
7 unsafe fn g() {
8     f();
9 }
10