Skip to content

Commit 55c6ad4

Browse files
committed
Update tests
1 parent 84f4cd8 commit 55c6ad4

7 files changed

Lines changed: 5 additions & 7 deletions

File tree

tests/unit/out/refcount/union_addrof_external.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl anon_0 {
5252
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_cast()
5353
}
5454
pub fn raw_(&self) -> Ptr<Box<[u8]>> {
55-
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_cast()
55+
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_sized(128)
5656
}
5757
}
5858
impl Clone for anon_0 {

tests/unit/out/refcount/union_cross_arm_cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl anon_0 {
8989
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_cast()
9090
}
9191
pub fn raw_(&self) -> Ptr<Box<[u8]>> {
92-
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_cast()
92+
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_sized(64)
9393
}
9494
}
9595
impl Clone for anon_0 {

tests/unit/out/refcount/union_memset_memcpy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl anon_0 {
8585
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_cast()
8686
}
8787
pub fn raw_(&self) -> Ptr<Box<[u8]>> {
88-
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_cast()
88+
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_sized(256)
8989
}
9090
}
9191
impl Clone for anon_0 {

tests/unit/out/refcount/union_nested.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl anon_0 {
4444
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_cast()
4545
}
4646
pub fn raw_(&self) -> Ptr<Box<[u8]>> {
47-
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_cast()
47+
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_sized(128)
4848
}
4949
}
5050
impl Clone for anon_0 {

tests/unit/out/refcount/union_struct_dual_use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl anon_1 {
4141
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_cast()
4242
}
4343
pub fn raw_(&self) -> Ptr<Box<[u8]>> {
44-
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_cast()
44+
(self.__bytes.as_pointer() as Ptr<u8>).reinterpret_sized(16)
4545
}
4646
}
4747
impl Clone for anon_1 {

tests/unit/union_addrof_external.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// panic: refcount
21
#include <assert.h>
32
#include <stddef.h>
43
#include <stdint.h>

tests/unit/union_memset_memcpy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// panic: refcount
21
#include <assert.h>
32
#include <stddef.h>
43
#include <stdint.h>

0 commit comments

Comments
 (0)