mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
6 lines
165 B
Rust
6 lines
165 B
Rust
pub extern "C" fn f() -> i32 { 1 }
|
|
pub extern "C" fn g() -> i32 { 2 }
|
|
|
|
pub fn get_f() -> extern "C" fn() -> i32 { f }
|
|
pub fn get_g() -> extern "C" fn() -> i32 { g }
|