summaryrefslogtreecommitdiffstats
path: root/tests/run-make/issue-68794-textrel-on-minimal-lib/foo.rs
blob: a3e865b638ed44fa2f7a17f1d540ef029e6cc2c3 (plain)
1
2
3
4
5
6
7
8
#![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);
}