mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
19 lines
262 B
Rust
19 lines
262 B
Rust
// run-pass
|
|
// ignore-wasm32-bare no libc to test ffi with
|
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
use std::mem::transmute;
|
|
|
|
mod a {
|
|
extern "C" {
|
|
pub fn free(x: *const u8);
|
|
}
|
|
}
|
|
|
|
pub fn main() {
|
|
unsafe {
|
|
a::free(transmute(0_usize));
|
|
}
|
|
}
|