diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-07 22:39:46 -1000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-07 22:39:46 -1000 |
commit | dd80c2782a545864b95d2f0d18e7884038bff473 (patch) | |
tree | 92c39b011ebe3ff7f544fa478f88ba97bb67909e /libbindgen/tests | |
parent | 27fb5df28b063e59fd4d4f9e1ad858f681e9e6d0 (diff) |
codegen: generate stable names for tests functions.
Diffstat (limited to 'libbindgen/tests')
4 files changed, 6 insertions, 6 deletions
diff --git a/libbindgen/tests/expectations/tests/anon_union.rs b/libbindgen/tests/expectations/tests/anon_union.rs index db03e177..8ae92b31 100644 --- a/libbindgen/tests/expectations/tests/anon_union.rs +++ b/libbindgen/tests/expectations/tests/anon_union.rs @@ -63,7 +63,7 @@ pub struct TErrorResult__bindgen_ty_1<T> { pub _phantom_0: ::std::marker::PhantomData<T>, } #[test] -fn __bindgen_test_layout_template_17() { +fn __bindgen_test_layout_template_1() { assert_eq!(::std::mem::size_of::<TErrorResult<::std::os::raw::c_int>>() , 24usize); assert_eq!(::std::mem::align_of::<TErrorResult<::std::os::raw::c_int>>() , diff --git a/libbindgen/tests/expectations/tests/class_with_dtor.rs b/libbindgen/tests/expectations/tests/class_with_dtor.rs index 88c036b6..8fa0951f 100644 --- a/libbindgen/tests/expectations/tests/class_with_dtor.rs +++ b/libbindgen/tests/expectations/tests/class_with_dtor.rs @@ -21,7 +21,7 @@ fn bindgen_test_layout_WithoutDtor() { assert_eq!(::std::mem::align_of::<WithoutDtor>() , 8usize); } #[test] -fn __bindgen_test_layout_template_11() { +fn __bindgen_test_layout_template_1() { assert_eq!(::std::mem::size_of::<HandleWithDtor<::std::os::raw::c_int>>() , 8usize); assert_eq!(::std::mem::align_of::<HandleWithDtor<::std::os::raw::c_int>>() diff --git a/libbindgen/tests/expectations/tests/crtp.rs b/libbindgen/tests/expectations/tests/crtp.rs index e21c5de2..109a768a 100644 --- a/libbindgen/tests/expectations/tests/crtp.rs +++ b/libbindgen/tests/expectations/tests/crtp.rs @@ -11,7 +11,7 @@ pub struct Base<T> { pub _phantom_0: ::std::marker::PhantomData<T>, } #[test] -fn __bindgen_test_layout_template_5() { +fn __bindgen_test_layout_template_1() { assert_eq!(::std::mem::size_of::<Base<Derived>>() , 1usize); assert_eq!(::std::mem::align_of::<Base<Derived>>() , 1usize); } @@ -35,7 +35,7 @@ pub struct BaseWithDestructor<T> { pub _phantom_0: ::std::marker::PhantomData<T>, } #[test] -fn __bindgen_test_layout_template_12() { +fn __bindgen_test_layout_template_2() { assert_eq!(::std::mem::size_of::<BaseWithDestructor<DerivedFromBaseWithDestructor>>() , 1usize); assert_eq!(::std::mem::align_of::<BaseWithDestructor<DerivedFromBaseWithDestructor>>() diff --git a/libbindgen/tests/expectations/tests/template.rs b/libbindgen/tests/expectations/tests/template.rs index 21814baa..5864ac73 100644 --- a/libbindgen/tests/expectations/tests/template.rs +++ b/libbindgen/tests/expectations/tests/template.rs @@ -13,7 +13,7 @@ pub struct Foo<T, U> { pub _phantom_1: ::std::marker::PhantomData<U>, } #[test] -fn __bindgen_test_layout_template_10() { +fn __bindgen_test_layout_template_1() { assert_eq!(::std::mem::size_of::<Foo<::std::os::raw::c_int, ::std::os::raw::c_int>>() , 24usize); assert_eq!(::std::mem::align_of::<Foo<::std::os::raw::c_int, ::std::os::raw::c_int>>() @@ -176,7 +176,7 @@ pub struct TemplateWithVar<T> { pub _phantom_0: ::std::marker::PhantomData<T>, } #[test] -fn __bindgen_test_layout_template_132() { +fn __bindgen_test_layout_template_2() { assert_eq!(::std::mem::size_of::<WithDtor<::std::os::raw::c_int>>() , 4usize); assert_eq!(::std::mem::align_of::<WithDtor<::std::os::raw::c_int>>() , |