Test async fn

This commit is contained in:
Jules Bertholet 2025-06-29 14:23:02 -04:00
parent a1cefee8d5
commit ce8ab082cc
No known key found for this signature in database
GPG key ID: 32034DAFC38C1BFC

View file

@ -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() {}