diff options
author | Christopher Chambers <chris.chambers@peanutcode.com> | 2014-12-31 10:57:40 -0600 |
---|---|---|
committer | Christopher Chambers <chris.chambers@peanutcode.com> | 2014-12-31 10:57:40 -0600 |
commit | 7fd76345505adde2eee8d63a92190f38d2a7c792 (patch) | |
tree | 017e0890b70fecb19d58db991abf0e794c15ea61 /tests/test_struct.rs | |
parent | fffb60bff6daebe2146458c36c85d5e3deedf835 (diff) |
Fixes a struct test that was previously incorrect.
test_struct::containing_fwd_decl_struct previously had incorrect quoted
output in the test. bindgen was generating code correctly. Now the
test is corrected and passes.
Diffstat (limited to 'tests/test_struct.rs')
-rw-r--r-- | tests/test_struct.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_struct.rs b/tests/test_struct.rs index d3c52aef..2d30174c 100644 --- a/tests/test_struct.rs +++ b/tests/test_struct.rs @@ -101,7 +101,7 @@ fn with_nesting() { } #[test] -fn with_contain_fwd_decl_struct() { +fn containing_fwd_decl_struct() { assert_bind_eq!("headers/struct_containing_forward_declared_struct.h", cx, quote_item!(cx, #[repr(C)] @@ -113,7 +113,9 @@ fn with_contain_fwd_decl_struct() { quote_item!(cx, #[repr(C)] #[deriving(Copy)] - pub struct Struct_b; + pub struct Struct_b { + pub val_b: ::libc::c_int, + } )); } |