Skip to content

Commit

Permalink
Fix test for size_of_val and align_of_val panicking on extern types
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Dec 18, 2023
1 parent fdcf56c commit 697aa0a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions example/mini_core_hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,17 +337,6 @@ fn main() {
static REF2: &u8 = REF1;
assert_eq!(*REF1, *REF2);

extern "C" {
type A;
}

fn main() {
let x: &A = unsafe { &*(1usize as *const A) };

assert_eq!(unsafe { intrinsics::size_of_val(x) }, 0);
assert_eq!(unsafe { intrinsics::min_align_of_val(x) }, 1);
}

#[repr(simd)]
struct V([f64; 2]);

Expand Down

0 comments on commit 697aa0a

Please sign in to comment.