rust/src/test/run-pass/unsafe-fn-called-from-unsafe-blk.rs
Niko Matsakis cbe8da0655 make treatment of unchecked/unsafe blocks more uniform
also repair various errors in the parser related to such blocks.
rename checked_blk to default_blk to reflect the fact that it
inherits its purity from the surrounding context.
2011-10-12 14:39:24 -07:00

19 lines
186 B
Rust

// -*- rust -*-
//
// See also: compile-fail/unsafe-fn-called-from-safe.rs
unsafe fn f() { ret; }
fn g() {
unsafe {
f();
}
}
fn h() unsafe {
f();
}
fn main() {
}