about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-04-02 08:31:42 +0200
committerRalf Jung <post@ralfj.de>2025-04-07 23:30:55 +0200
commit2678d04dd97444cf444c31be92bfd281f9986a47 (patch)
treef11b92295a76bf8fd52819987ef033023a4a2ecf /tests
parente643f59f6da3a84f43e75dea99afaa5b041ea6bf (diff)
downloadrust-2678d04dd97444cf444c31be92bfd281f9986a47.tar.gz
rust-2678d04dd97444cf444c31be92bfd281f9986a47.zip
mitigate MSVC unsoundness by not emitting alignment attributes on win32-msvc targets
also mention the MSVC alignment issue in platform-support.md
Diffstat (limited to 'tests')
-rw-r--r--tests/codegen/align-struct.rs4
-rw-r--r--tests/codegen/issues/issue-56927.rs3
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/codegen/align-struct.rs b/tests/codegen/align-struct.rs
index cc65b08a922..402a184d4c0 100644
--- a/tests/codegen/align-struct.rs
+++ b/tests/codegen/align-struct.rs
@@ -1,5 +1,7 @@
 //@ compile-flags: -C no-prepopulate-passes -Z mir-opt-level=0
-//
+// 32bit MSVC does not align things properly so we suppress high alignment annotations (#112480)
+//@ ignore-i686-pc-windows-msvc
+//@ ignore-i686-pc-windows-gnu
 
 #![crate_type = "lib"]
 
diff --git a/tests/codegen/issues/issue-56927.rs b/tests/codegen/issues/issue-56927.rs
index a40718689b3..415ef073e03 100644
--- a/tests/codegen/issues/issue-56927.rs
+++ b/tests/codegen/issues/issue-56927.rs
@@ -1,4 +1,7 @@
 //@ compile-flags: -C no-prepopulate-passes
+// 32bit MSVC does not align things properly so we suppress high alignment annotations (#112480)
+//@ ignore-i686-pc-windows-msvc
+//@ ignore-i686-pc-windows-gnu
 
 #![crate_type = "rlib"]