diff options
| author | Jules Bertholet <julesbertholet@quoi.xyz> | 2025-06-29 14:23:02 -0400 |
|---|---|---|
| committer | Jules Bertholet <julesbertholet@quoi.xyz> | 2025-07-06 16:56:42 -0400 |
| commit | ce8ab082cc327cf2064c0037fd39f2081397f9f6 (patch) | |
| tree | 5791d4e0718ea303fe56b605ae6b7eb5e5d7b9fe | |
| parent | a1cefee8d5d39e7e36b60ea0cca06c0220938f74 (diff) | |
| download | rust-ce8ab082cc327cf2064c0037fd39f2081397f9f6.tar.gz rust-ce8ab082cc327cf2064c0037fd39f2081397f9f6.zip | |
Test `async fn`
| -rw-r--r-- | tests/codegen/align-fn.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/codegen/align-fn.rs b/tests/codegen/align-fn.rs index 4a9fc49d211..6f26ebe66f2 100644 --- a/tests/codegen/align-fn.rs +++ b/tests/codegen/align-fn.rs @@ -1,4 +1,5 @@ //@ compile-flags: -C no-prepopulate-passes -Z mir-opt-level=0 -Clink-dead-code +//@ edition: 2024 #![crate_type = "lib"] #![feature(fn_align)] @@ -130,3 +131,9 @@ unsafe extern "C" { #[align(256)] fn align_unmangled(); } + +// CHECK-LABEL: async_align +// CHECK-SAME: align 64 +#[unsafe(no_mangle)] +#[align(64)] +pub async fn async_align() {} |
