1 // Copyright 2024 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 chromium::import! { 6 "//build/rust/tests/bindgen_static_fns_test:c_lib_bindgen"; 7 } 8 mul_three_numbers_in_c(a: u32, b: u32, c: u32) -> u329pub fn mul_three_numbers_in_c(a: u32, b: u32, c: u32) -> u32 { 10 unsafe { c_lib_bindgen::mul_three_numbers(a, b, c) } 11 } 12 13 #[cfg(test)] 14 mod tests { 15 use super::*; 16 17 #[test] test_mul_three_numbers()18 fn test_mul_three_numbers() { 19 assert_eq!(mul_three_numbers_in_c(5, 10, 15), 750); 20 } 21 } 22