]> git.proxmox.com Git - rustc.git/blame - tests/run-make-fulldeps/c-static-rlib/foo.rs
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / run-make-fulldeps / c-static-rlib / foo.rs
CommitLineData
1a4d82fc 1#![crate_type = "rlib"]
223e47cc 2
476ff2be 3#[link(name = "cfoo", kind = "static")]
5869c6ff 4extern "C" {
1a4d82fc 5 fn foo();
223e47cc
LB
6}
7
1a4d82fc
JJ
8pub fn rsfoo() {
9 unsafe { foo() }
223e47cc 10}