1 2 3 4 5 6 7 8 9 10
// run-pass // Test direct calls to extern fns. extern "C" fn f(x: usize) -> usize { x * 2 } pub fn main() { let x = f(22); assert_eq!(x, 44); }