about summary refs log tree commit diff
path: root/src/test/ui/unsafe-fn-called-from-unsafe-fn.rs
blob: 26acc913e872ae06d4307405e56dc1e356bd6623 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// run-pass

#![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;
}