-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* automatically generated by rust-bindgen */ | ||
|
||
|
||
#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)] | ||
|
||
|
||
#[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] | ||
pub mod root { | ||
#[allow(unused_imports)] | ||
use self::super::root; | ||
pub mod Halide { | ||
#[allow(unused_imports)] | ||
use self::super::super::root; | ||
#[repr(C)] | ||
#[derive(Debug, Default, Copy)] | ||
pub struct Type { | ||
pub _address: u8, | ||
} | ||
extern "C" { | ||
#[link_name = "_ZN6Halide4Type1bE"] | ||
pub static mut Type_b: root::a; | ||
} | ||
#[test] | ||
fn bindgen_test_layout_Type() { | ||
assert_eq!(::std::mem::size_of::<Type>() , 1usize , concat ! ( | ||
"Size of: " , stringify ! ( Type ) )); | ||
assert_eq! (::std::mem::align_of::<Type>() , 1usize , concat ! ( | ||
"Alignment of " , stringify ! ( Type ) )); | ||
} | ||
impl Clone for Type { | ||
fn clone(&self) -> Self { *self } | ||
} | ||
} | ||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | ||
pub enum a { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// bindgen-flags: --enable-cxx-namespaces | ||
|
||
namespace Halide { | ||
struct Type; | ||
} | ||
typedef enum {} a; | ||
namespace Halide { | ||
struct Type { | ||
static a b; | ||
}; | ||
} |