about summary refs log tree commit diff
path: root/tests/codegen/min-function-alignment.rs
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@users.noreply.github.com>2025-06-23 09:44:54 +0000
committerGitHub <noreply@github.com>2025-06-23 09:44:54 +0000
commit4b375346156015e998c621eb851292928dfdce73 (patch)
tree8ba69fe791545d69bd1d6fd93318b8bc76449a18 /tests/codegen/min-function-alignment.rs
parent9a0434ec195f6cbe3b84fd6d6275f142414f41f7 (diff)
parent3c4a690d018bebe98cf5ebfdfbf4388d131121c9 (diff)
downloadrust-4b375346156015e998c621eb851292928dfdce73.tar.gz
rust-4b375346156015e998c621eb851292928dfdce73.zip
Merge pull request #20063 from lnicola/sync-from-rust
minor: sync from downstream
Diffstat (limited to 'tests/codegen/min-function-alignment.rs')
-rw-r--r--tests/codegen/min-function-alignment.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/codegen/min-function-alignment.rs b/tests/codegen/min-function-alignment.rs
index 7c0ad12402a..75f845572a4 100644
--- a/tests/codegen/min-function-alignment.rs
+++ b/tests/codegen/min-function-alignment.rs
@@ -18,16 +18,16 @@ pub fn no_explicit_align() {}
 // align16: align 16
 // align1024: align 1024
 #[no_mangle]
-#[repr(align(8))]
+#[align(8)]
 pub fn lower_align() {}
 
-// the higher value of min-function-alignment and repr(align) wins out
+// the higher value of min-function-alignment and the align attribute wins out
 //
 // CHECK-LABEL: @higher_align
 // align16: align 32
 // align1024: align 1024
 #[no_mangle]
-#[repr(align(32))]
+#[align(32)]
 pub fn higher_align() {}
 
 // cold functions follow the same rules as other functions