rust/tests/run-make-fulldeps/issue-68794-textrel-on-minimal-lib/foo.rs
2023-01-11 09:32:08 +00:00

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);
}