summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/expectations/tests/libclang-3.8/abi_variadic_function.rs17
-rw-r--r--tests/expectations/tests/libclang-3.9/abi_variadic_function.rs13
-rw-r--r--tests/expectations/tests/libclang-4/abi_variadic_function.rs13
-rw-r--r--tests/expectations/tests/libclang-5/abi_variadic_function.rs13
-rw-r--r--tests/headers/abi_variadic_function.hpp4
5 files changed, 60 insertions, 0 deletions
diff --git a/tests/expectations/tests/libclang-3.8/abi_variadic_function.rs b/tests/expectations/tests/libclang-3.8/abi_variadic_function.rs
new file mode 100644
index 00000000..ef1769dd
--- /dev/null
+++ b/tests/expectations/tests/libclang-3.8/abi_variadic_function.rs
@@ -0,0 +1,17 @@
+/* automatically generated by rust-bindgen */
+
+#![allow(
+ dead_code,
+ non_snake_case,
+ non_camel_case_types,
+ non_upper_case_globals
+)]
+
+extern "C" {
+ #[link_name = "\u{1}_Z1acz"]
+ pub fn a(arg1: ::std::os::raw::c_char, ...) -> ::std::os::raw::c_char;
+}
+extern "C" {
+ #[link_name = "\u{1}_Z1bcz"]
+ pub fn b(arg1: ::std::os::raw::c_char, ...) -> ::std::os::raw::c_char;
+}
diff --git a/tests/expectations/tests/libclang-3.9/abi_variadic_function.rs b/tests/expectations/tests/libclang-3.9/abi_variadic_function.rs
new file mode 100644
index 00000000..89cf9a64
--- /dev/null
+++ b/tests/expectations/tests/libclang-3.9/abi_variadic_function.rs
@@ -0,0 +1,13 @@
+/* automatically generated by rust-bindgen */
+
+#![allow(
+ dead_code,
+ non_snake_case,
+ non_camel_case_types,
+ non_upper_case_globals
+)]
+
+extern "C" {
+ #[link_name = "\u{1}_Z1bcz"]
+ pub fn b(arg1: ::std::os::raw::c_char, ...) -> ::std::os::raw::c_char;
+}
diff --git a/tests/expectations/tests/libclang-4/abi_variadic_function.rs b/tests/expectations/tests/libclang-4/abi_variadic_function.rs
new file mode 100644
index 00000000..89cf9a64
--- /dev/null
+++ b/tests/expectations/tests/libclang-4/abi_variadic_function.rs
@@ -0,0 +1,13 @@
+/* automatically generated by rust-bindgen */
+
+#![allow(
+ dead_code,
+ non_snake_case,
+ non_camel_case_types,
+ non_upper_case_globals
+)]
+
+extern "C" {
+ #[link_name = "\u{1}_Z1bcz"]
+ pub fn b(arg1: ::std::os::raw::c_char, ...) -> ::std::os::raw::c_char;
+}
diff --git a/tests/expectations/tests/libclang-5/abi_variadic_function.rs b/tests/expectations/tests/libclang-5/abi_variadic_function.rs
new file mode 100644
index 00000000..89cf9a64
--- /dev/null
+++ b/tests/expectations/tests/libclang-5/abi_variadic_function.rs
@@ -0,0 +1,13 @@
+/* automatically generated by rust-bindgen */
+
+#![allow(
+ dead_code,
+ non_snake_case,
+ non_camel_case_types,
+ non_upper_case_globals
+)]
+
+extern "C" {
+ #[link_name = "\u{1}_Z1bcz"]
+ pub fn b(arg1: ::std::os::raw::c_char, ...) -> ::std::os::raw::c_char;
+}
diff --git a/tests/headers/abi_variadic_function.hpp b/tests/headers/abi_variadic_function.hpp
new file mode 100644
index 00000000..2141535c
--- /dev/null
+++ b/tests/headers/abi_variadic_function.hpp
@@ -0,0 +1,4 @@
+// bindgen-flags: -- -std=c++11
+
+char __attribute__((ms_abi)) a(char, ...);
+char b(char, ...);