test cases/rust/12 bindgen/dependencies/internal_main.rs
raw| 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // Copyright © 2021 Intel Corporation |
| 3 | |
| 4 | #![allow(non_upper_case_globals)] |
| 5 | #![allow(non_camel_case_types)] |
| 6 | #![allow(non_snake_case)] |
| 7 | |
| 8 | include!("internal_dep.rs"); |
| 9 | |
| 10 | use std::convert::TryInto; |
| 11 | |
| 12 | fn main() { |
| 13 | unsafe { |
| 14 | std::process::exit(add64(0, 0).try_into().unwrap_or(5)); |
| 15 | }; |
| 16 | } |