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