diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-10-29 22:27:11 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-10-29 22:27:11 +0200 |
commit | 161a90a9f90dc0ff6f62aff374e179f6c08a9949 (patch) | |
tree | 0ea8e934d3b239f4285074061b9f9e5019c3ad92 | |
parent | 3802c99c85daad5e5e92255b0569611ad2c1d01c (diff) |
Add a test for elaborated types.
After the rewrite, this works.
Fixes #3
-rw-r--r-- | tests/expectations/elaborated.rs | 11 | ||||
-rw-r--r-- | tests/headers/elaborated.hpp | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/expectations/elaborated.rs b/tests/expectations/elaborated.rs new file mode 100644 index 00000000..db373d41 --- /dev/null +++ b/tests/expectations/elaborated.rs @@ -0,0 +1,11 @@ +/* automatically generated by rust-bindgen */ + + +#![allow(non_snake_case)] + + +pub type whatever_t = ::std::os::raw::c_int; +extern "C" { + #[link_name = "_Z9somethingPKi"] + pub fn something(wat: *const whatever_t); +} diff --git a/tests/headers/elaborated.hpp b/tests/headers/elaborated.hpp new file mode 100644 index 00000000..4bfbff23 --- /dev/null +++ b/tests/headers/elaborated.hpp @@ -0,0 +1,5 @@ +namespace whatever { + typedef int whatever_t; +} + +void something(const whatever::whatever_t *wat); |