2021-03-14 14:11:37 -05:00
|
|
|
// revisions: mir thir
|
|
|
|
// [thir]compile-flags: -Z thir-unsafeck
|
|
|
|
|
2013-03-05 16:42:58 -06:00
|
|
|
mod test {
|
2020-09-01 16:12:52 -05:00
|
|
|
extern "C" {
|
2013-08-02 16:30:00 -05:00
|
|
|
pub fn free();
|
2013-03-05 16:42:58 -06:00
|
|
|
}
|
2011-10-11 20:01:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
test::free();
|
2022-04-26 05:43:00 -05:00
|
|
|
//[mir]~^ ERROR call to unsafe function is unsafe
|
|
|
|
//[thir]~^^ ERROR call to unsafe function `test::free` is unsafe
|
2011-10-11 20:01:54 -05:00
|
|
|
}
|