mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
433da1fc04
They pass fine.
9 lines
224 B
Rust
9 lines
224 B
Rust
#![crate_type = "staticlib"]
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn foo(x: u32) {
|
|
// using the println! makes it so that enough code from the standard
|
|
// library is included (see issue #68794)
|
|
println!("foo: {}", x);
|
|
}
|