Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>pull/14031/head
parent
4644779ebf
commit
542dc2c937
2 changed files with 25 additions and 0 deletions
@ -0,0 +1,15 @@ |
||||
extern "C" { |
||||
fn from_lib1(); |
||||
} |
||||
|
||||
#[no_mangle] |
||||
extern "C" fn from_lib2() |
||||
{ |
||||
println!("hello world from rust"); |
||||
} |
||||
|
||||
#[no_mangle] |
||||
pub extern "C" fn c_func() |
||||
{ |
||||
unsafe { from_lib1(); } |
||||
} |
Loading…
Reference in new issue