diff options
author | Rémy HUBSCHER <rhubscher@mozilla.com> | 2016-11-18 19:15:16 +0100 |
---|---|---|
committer | Rémy HUBSCHER <rhubscher@mozilla.com> | 2016-11-18 19:25:22 +0100 |
commit | 3f0f86810b855d20dfc39655f336ba814d169281 (patch) | |
tree | c5be24847ff39ac4d2713d94c1dd8a69f96951af | |
parent | e65cd9bf47f52c13522b984426e26b948de9dbe7 (diff) |
Add a test
-rw-r--r-- | libbindgen/tests/expectations/tests/variadic_template_function.rs | 12 | ||||
-rw-r--r-- | libbindgen/tests/headers/variadic_template_function.hpp | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/libbindgen/tests/expectations/tests/variadic_template_function.rs b/libbindgen/tests/expectations/tests/variadic_template_function.rs new file mode 100644 index 00000000..cd99df96 --- /dev/null +++ b/libbindgen/tests/expectations/tests/variadic_template_function.rs @@ -0,0 +1,12 @@ +/* automatically generated by rust-bindgen */ + + +#![allow(non_snake_case)] + + +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct VariadicFunctionObject<T> { + pub _address: u8, + pub _phantom_0: ::std::marker::PhantomData<T>, +} diff --git a/libbindgen/tests/headers/variadic_template_function.hpp b/libbindgen/tests/headers/variadic_template_function.hpp new file mode 100644 index 00000000..4942d8f0 --- /dev/null +++ b/libbindgen/tests/headers/variadic_template_function.hpp @@ -0,0 +1,6 @@ + +template <typename T> +class VariadicFunctionObject { +public: + int add_em_up(T count,...); +}; |