Skip to content

Commit fe546e6

Browse files
committed
Update tests to match rcc output
Just a few more harmless constants
1 parent a71aa99 commit fe546e6

7 files changed

+12
-2
lines changed

tests/expectations/tests/issue-1676-macro-namespace-prefix.rs

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
non_camel_case_types,
77
non_upper_case_globals
88
)]
9+
10+
pub const nssv_inline_ns: u32 = 0;

tests/expectations/tests/layout_array.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
)]
99

1010
pub const RTE_CACHE_LINE_SIZE: u32 = 64;
11+
pub const __rte_cache_aligned: u32 = 0;
1112
pub const RTE_MEMPOOL_OPS_NAMESIZE: u32 = 32;
1213
pub const RTE_MEMPOOL_MAX_OPS_IDX: u32 = 16;
1314
pub const RTE_HEAP_NUM_FREELISTS: u32 = 13;

tests/expectations/tests/layout_array_too_long.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
)]
99

1010
pub const RTE_CACHE_LINE_SIZE: u32 = 64;
11+
pub const __rte_cache_aligned: u32 = 0;
1112
pub const RTE_LIBRTE_IP_FRAG_MAX_FRAG: u32 = 4;
1213
pub const IP_LAST_FRAG_IDX: _bindgen_ty_1 = _bindgen_ty_1::IP_LAST_FRAG_IDX;
1314
pub const IP_FIRST_FRAG_IDX: _bindgen_ty_1 = _bindgen_ty_1::IP_FIRST_FRAG_IDX;

tests/expectations/tests/layout_large_align_field.rs

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
3838
}
3939
}
4040
pub const RTE_CACHE_LINE_SIZE: u32 = 64;
41+
pub const __rte_cache_aligned: u32 = 0;
4142
pub const RTE_LIBRTE_IP_FRAG_MAX_FRAG: u32 = 4;
4243
pub const IP_LAST_FRAG_IDX: _bindgen_ty_1 = _bindgen_ty_1::IP_LAST_FRAG_IDX;
4344
pub const IP_FIRST_FRAG_IDX: _bindgen_ty_1 = _bindgen_ty_1::IP_FIRST_FRAG_IDX;

tests/expectations/tests/layout_mbuf.rs

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ where
9696
}
9797
pub const RTE_CACHE_LINE_MIN_SIZE: u32 = 64;
9898
pub const RTE_CACHE_LINE_SIZE: u32 = 64;
99+
pub const __rte_cache_aligned: u32 = 0;
100+
pub const __rte_cache_min_aligned: u32 = 0;
99101
pub type phys_addr_t = u64;
100102
pub type MARKER = [*mut ::std::os::raw::c_void; 0usize];
101103
pub type MARKER8 = [u8; 0usize];

tests/expectations/tests/layout_mbuf_1_0.rs

+2
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ impl<T> ::std::cmp::PartialEq for __BindgenUnionField<T> {
139139
impl<T> ::std::cmp::Eq for __BindgenUnionField<T> {}
140140
pub const RTE_CACHE_LINE_MIN_SIZE: u32 = 64;
141141
pub const RTE_CACHE_LINE_SIZE: u32 = 64;
142+
pub const __rte_cache_aligned: u32 = 0;
143+
pub const __rte_cache_min_aligned: u32 = 0;
142144
pub type phys_addr_t = u64;
143145
pub type MARKER = [*mut ::std::os::raw::c_void; 0usize];
144146
pub type MARKER8 = [u8; 0usize];

tests/expectations/tests/namespace.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
pub mod root {
1212
#[allow(unused_imports)]
1313
use self::super::root;
14+
pub const NAMESPACE: u32 = 0;
1415
extern "C" {
1516
#[link_name = "\u{1}_Z9top_levelv"]
1617
pub fn top_level();
@@ -24,7 +25,7 @@ pub mod root {
2425
pub fn in_whatever();
2526
}
2627
}
27-
pub mod _bindgen_mod_id_17 {
28+
pub mod _bindgen_mod_id_18 {
2829
#[allow(unused_imports)]
2930
use self::super::super::root;
3031
#[repr(C)]
@@ -59,7 +60,7 @@ pub mod root {
5960
#[repr(C)]
6061
#[derive(Debug)]
6162
pub struct C<T> {
62-
pub _base: root::_bindgen_mod_id_17::A,
63+
pub _base: root::_bindgen_mod_id_18::A,
6364
pub m_c: T,
6465
pub m_c_ptr: *mut T,
6566
pub m_c_arr: [T; 10usize],

0 commit comments

Comments
 (0)