summaryrefslogtreecommitdiffstats
path: root/test cases/rust/12 bindgen/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/rust/12 bindgen/src/main.rs')
-rw-r--r--test cases/rust/12 bindgen/src/main.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/rust/12 bindgen/src/main.rs b/test cases/rust/12 bindgen/src/main.rs
new file mode 100644
index 0000000..3f85e96
--- /dev/null
+++ b/test cases/rust/12 bindgen/src/main.rs
@@ -0,0 +1,14 @@
+// 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!("header.rs");
+
+fn main() {
+ unsafe {
+ std::process::exit(add(0, 0));
+ };
+}