Skip to content

Commit

Permalink
Add a test for elaborated types.
Browse files Browse the repository at this point in the history
After the rewrite, this works.

Fixes #3
  • Loading branch information
emilio committed Oct 29, 2016
1 parent 3802c99 commit 161a90a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/expectations/elaborated.rs
Original file line number Diff line number Diff line change
@@ -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);
}
5 changes: 5 additions & 0 deletions tests/headers/elaborated.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace whatever {
typedef int whatever_t;
}

void something(const whatever::whatever_t *wat);

0 comments on commit 161a90a

Please sign in to comment.