summaryrefslogtreecommitdiffstats
path: root/test cases/rust/12 bindgen/dependencies/internal_main.rs
blob: 4890b43c28c0c72d67c9f73040d9bf5feef6752b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-license-identifer: Apache-2.0
// Copyright © 2021 Intel Corporation

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]

include!("internal_dep.rs");

use std::convert::TryInto;

fn main() {
    unsafe {
        std::process::exit(add64(0, 0).try_into().unwrap_or(5));
    };
}