about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/example
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-12-19 12:46:39 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-12-19 12:46:39 +0000
commitd5c38ded260e3a8e0bc60cd837bc08a47d841d65 (patch)
treedcff5d9ad47dacc9f72027a057c4a6cace5b00ac /compiler/rustc_codegen_cranelift/example
parent69e4545a8d80dd52f65b0727a1a88677c7e98e3d (diff)
parent3a9bf729322fb5035518f99b9d76a742bf7c124e (diff)
downloadrust-d5c38ded260e3a8e0bc60cd837bc08a47d841d65.tar.gz
rust-d5c38ded260e3a8e0bc60cd837bc08a47d841d65.zip
Merge commit '3a9bf729322fb5035518f99b9d76a742bf7c124e' into sync_cg_clif-2023-12-19
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example')
-rw-r--r--compiler/rustc_codegen_cranelift/example/mini_core_hello_world.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/rustc_codegen_cranelift/example/mini_core_hello_world.rs b/compiler/rustc_codegen_cranelift/example/mini_core_hello_world.rs
index afc51a47f14..1d51b499c8b 100644
--- a/compiler/rustc_codegen_cranelift/example/mini_core_hello_world.rs
+++ b/compiler/rustc_codegen_cranelift/example/mini_core_hello_world.rs
@@ -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]);