summaryrefslogtreecommitdiffstats
path: root/tests/ui/extern/auxiliary/extern-take-value.rs
blob: 56256aa1927eebe0f3c07495a720bdedabfa6020 (plain)
1
2
3
4
5
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 }