about summary refs log tree commit diff
path: root/tests/mir-opt/const_allocation3.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-05-21 14:07:02 +0200
committerRalf Jung <post@ralfj.de>2024-05-21 19:22:04 +0200
commit37aeb75eb6c68dfee49e9ecdbd0c46e137b28bc7 (patch)
tree48d6dac5a32fa4848fd78f4fc59e66a4ff76027d /tests/mir-opt/const_allocation3.rs
parente8753914580fb42554a79a4b5c5fb4cc98933231 (diff)
downloadrust-37aeb75eb6c68dfee49e9ecdbd0c46e137b28bc7.tar.gz
rust-37aeb75eb6c68dfee49e9ecdbd0c46e137b28bc7.zip
don't inhibit random field reordering on repr(packed(1))
Diffstat (limited to 'tests/mir-opt/const_allocation3.rs')
-rw-r--r--tests/mir-opt/const_allocation3.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mir-opt/const_allocation3.rs b/tests/mir-opt/const_allocation3.rs
index 46be3e1e36e..9d2006b6fe8 100644
--- a/tests/mir-opt/const_allocation3.rs
+++ b/tests/mir-opt/const_allocation3.rs
@@ -7,7 +7,7 @@ fn main() {
     FOO;
 }
 
-#[repr(packed)]
+#[repr(C, packed)]
 struct Packed {
     a: [u8; 28],
     b: &'static i32,