Skip to content

Commit 55d0210

Browse files
Test async fn
1 parent 278f4f4 commit 55d0210

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/codegen/align-fn.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ compile-flags: -C no-prepopulate-passes -Z mir-opt-level=0 -Clink-dead-code
2+
//@ edition: 2024
23

34
#![crate_type = "lib"]
45
#![feature(fn_align)]
@@ -130,3 +131,9 @@ unsafe extern "C" {
130131
#[align(256)]
131132
fn align_unmangled();
132133
}
134+
135+
// CHECK-LABEL: async_align
136+
// CHECK-SAME: align 64
137+
#[unsafe(no_mangle)]
138+
#[align(64)]
139+
pub async fn async_align() {}

0 commit comments

Comments
 (0)