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