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_cpp_test:cpp_lib_bindgen"; 7 } 8 main()9pub fn main() { 10 let from_cpp = 11 unsafe { cpp_lib_bindgen::functions::normal_fn(cpp_lib_bindgen::functions::kNumber) }; 12 println!("2 == {from_cpp}"); 13 assert_eq!(2, from_cpp); 14 } 15