Skip to content

Commit 179c1f6

Browse files
committed
Test.
1 parent dfe5185 commit 179c1f6

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/* automatically generated by rust-bindgen */
2+
3+
4+
#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)]
5+
6+
7+
#[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)]
8+
pub mod root {
9+
#[allow(unused_imports)]
10+
use self::super::root;
11+
pub mod Halide {
12+
#[allow(unused_imports)]
13+
use self::super::super::root;
14+
#[repr(C)]
15+
#[derive(Debug, Default, Copy)]
16+
pub struct Type {
17+
pub _address: u8,
18+
}
19+
extern "C" {
20+
#[link_name = "_ZN6Halide4Type1bE"]
21+
pub static mut Type_b: root::a;
22+
}
23+
#[test]
24+
fn bindgen_test_layout_Type() {
25+
assert_eq!(::std::mem::size_of::<Type>() , 1usize , concat ! (
26+
"Size of: " , stringify ! ( Type ) ));
27+
assert_eq! (::std::mem::align_of::<Type>() , 1usize , concat ! (
28+
"Alignment of " , stringify ! ( Type ) ));
29+
}
30+
impl Clone for Type {
31+
fn clone(&self) -> Self { *self }
32+
}
33+
}
34+
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
35+
pub enum a { }
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// bindgen-flags: --enable-cxx-namespaces
2+
3+
namespace Halide {
4+
struct Type;
5+
}
6+
typedef enum {} a;
7+
namespace Halide {
8+
struct Type {
9+
static a b;
10+
};
11+
}

0 commit comments

Comments
 (0)