rust/tests/ui/extern/auxiliary/extern-take-value.rs
2023-01-11 09:32:08 +00:00

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 }