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

#![allow(dead_code)]
//
// See also: compile-fail/unsafe-fn-called-from-safe.rs

// pretty-expanded FIXME #23616

unsafe fn f() { return; }

fn g() {
    unsafe {
        f();
    }
}

pub fn main() {
}