2011-10-06 23:33:04 -05:00
|
|
|
// -*- rust -*-
|
|
|
|
//
|
|
|
|
// See also: compile-fail/unsafe-fn-called-from-safe.rs
|
|
|
|
|
|
|
|
unsafe fn f() { ret; }
|
|
|
|
|
2011-10-07 17:51:55 -05:00
|
|
|
fn g() {
|
2011-10-06 23:33:04 -05:00
|
|
|
unsafe {
|
|
|
|
f();
|
|
|
|
}
|
|
|
|
}
|
2011-10-07 17:51:55 -05:00
|
|
|
|
|
|
|
fn h() unsafe {
|
|
|
|
f();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|