diff options
-rw-r--r-- | tests/expectations/tests/operator.rs | 16 | ||||
-rw-r--r-- | tests/headers/operator.hpp | 5 |
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/expectations/tests/operator.rs b/tests/expectations/tests/operator.rs new file mode 100644 index 00000000..5128226d --- /dev/null +++ b/tests/expectations/tests/operator.rs @@ -0,0 +1,16 @@ +#![allow( + dead_code, + non_snake_case, + non_camel_case_types, + non_upper_case_globals +)] + +extern "C" { + #[link_name = "\u{1}_Z20operator_informationv"] + pub fn operator_information() -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Foo { + _unused: [u8; 0], +} diff --git a/tests/headers/operator.hpp b/tests/headers/operator.hpp new file mode 100644 index 00000000..186f1fe6 --- /dev/null +++ b/tests/headers/operator.hpp @@ -0,0 +1,5 @@ +int operator_information(void); + +class Foo; +int operator<<(const Foo&, int); + |