diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/expectations/tests/macro_const.rs | 10 | ||||
-rw-r--r-- | tests/headers/macro_const.h | 1 |
2 files changed, 8 insertions, 3 deletions
diff --git a/tests/expectations/tests/macro_const.rs b/tests/expectations/tests/macro_const.rs index 382af9a5..851dd54e 100644 --- a/tests/expectations/tests/macro_const.rs +++ b/tests/expectations/tests/macro_const.rs @@ -1,12 +1,16 @@ /* automatically generated by rust-bindgen */ - -#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)] - +#![allow( + dead_code, + non_snake_case, + non_camel_case_types, + non_upper_case_globals +)] pub const foo: &'static [u8; 4usize] = b"bar\0"; pub const CHAR: u8 = 98u8; pub const CHARR: u8 = 0u8; pub const FLOAT: f64 = 5.09; pub const FLOAT_EXPR: f64 = 0.005; +pub const LONG: u32 = 3; pub const INVALID_UTF8: [u8; 5usize] = [240u8, 40u8, 140u8, 40u8, 0u8]; diff --git a/tests/headers/macro_const.h b/tests/headers/macro_const.h index c28a3f6b..7c5aa438 100644 --- a/tests/headers/macro_const.h +++ b/tests/headers/macro_const.h @@ -3,5 +3,6 @@ #define CHARR '\0' #define FLOAT 5.09f #define FLOAT_EXPR (5 / 1000.0f) +#define LONG 3L #define INVALID_UTF8 "\xf0\x28\x8c\x28" |