Skip to content

Commit 161a90a

Browse files
committed
Add a test for elaborated types.
After the rewrite, this works. Fixes #3
1 parent 3802c99 commit 161a90a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/expectations/elaborated.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* automatically generated by rust-bindgen */
2+
3+
4+
#![allow(non_snake_case)]
5+
6+
7+
pub type whatever_t = ::std::os::raw::c_int;
8+
extern "C" {
9+
#[link_name = "_Z9somethingPKi"]
10+
pub fn something(wat: *const whatever_t);
11+
}

tests/headers/elaborated.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
namespace whatever {
2+
typedef int whatever_t;
3+
}
4+
5+
void something(const whatever::whatever_t *wat);

0 commit comments

Comments
 (0)