summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2020-12-01 20:59:36 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2020-12-02 01:08:05 +0100
commit460ae847d25000f5e08d16fe9217adc356d3ab6f (patch)
tree3e86751e13c08d2dad3406d120a10bd91e17df29 /tests
parent19142ac6b3d8ee4fc5686d6f30b77e660026e528 (diff)
cli: Expose module_raw_lines to the CLI.
This makes command_line_args properly return them, instead of dropping them on the floor.
Diffstat (limited to 'tests')
-rw-r--r--tests/expectations/tests/namespace.rs1
-rw-r--r--tests/headers/namespace.hpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/expectations/tests/namespace.rs b/tests/expectations/tests/namespace.rs
index d5d10e29..944ec5bb 100644
--- a/tests/expectations/tests/namespace.rs
+++ b/tests/expectations/tests/namespace.rs
@@ -16,6 +16,7 @@ pub mod root {
pub mod whatever {
#[allow(unused_imports)]
use self::super::super::root;
+ pub type whatever_other_thing_t = whatever_int_t;
pub type whatever_int_t = ::std::os::raw::c_int;
extern "C" {
#[link_name = "\u{1}_ZN8whatever11in_whateverEv"]
diff --git a/tests/headers/namespace.hpp b/tests/headers/namespace.hpp
index a8e6f8ec..7e4197da 100644
--- a/tests/headers/namespace.hpp
+++ b/tests/headers/namespace.hpp
@@ -1,4 +1,4 @@
-// bindgen-flags: --enable-cxx-namespaces
+// bindgen-flags: --enable-cxx-namespaces --module-raw-line root::whatever 'pub type whatever_other_thing_t = whatever_int_t;'
void top_level();