]> git.lizzy.rs Git - rust.git/blob - src/test/ui/abi/extern/extern-call-direct.rs
Rollup merge of #95353 - jyn514:invalid-filter-hard-error, r=Mark-Simulacrum
[rust.git] / src / test / ui / abi / extern / extern-call-direct.rs
1 // run-pass
2 // Test direct calls to extern fns.
3
4
5 extern "C" fn f(x: usize) -> usize { x * 2 }
6
7 pub fn main() {
8     let x = f(22);
9     assert_eq!(x, 44);
10 }