diff options
Diffstat (limited to 'libbindgen/tests')
-rw-r--r-- | libbindgen/tests/expectations/tests/public-dtor.rs | 16 | ||||
-rw-r--r-- | libbindgen/tests/headers/public-dtor.hpp | 15 |
2 files changed, 31 insertions, 0 deletions
diff --git a/libbindgen/tests/expectations/tests/public-dtor.rs b/libbindgen/tests/expectations/tests/public-dtor.rs new file mode 100644 index 00000000..851857ee --- /dev/null +++ b/libbindgen/tests/expectations/tests/public-dtor.rs @@ -0,0 +1,16 @@ +/* automatically generated by rust-bindgen */ + + +#![allow(non_snake_case)] + + +#[repr(C)] +#[derive(Debug)] +pub struct cv_String { + pub _address: u8, +} +#[test] +fn bindgen_test_layout_cv_String() { + assert_eq!(::std::mem::size_of::<cv_String>() , 1usize); + assert_eq!(::std::mem::align_of::<cv_String>() , 1usize); +} diff --git a/libbindgen/tests/headers/public-dtor.hpp b/libbindgen/tests/headers/public-dtor.hpp new file mode 100644 index 00000000..5d4fb592 --- /dev/null +++ b/libbindgen/tests/headers/public-dtor.hpp @@ -0,0 +1,15 @@ + + +namespace cv { +class String { +public: + ~String(); +}; + + +inline +String::~String() +{ +} + +} |