Skip to content

Commit 156e2a6

Browse files
committed
Update another test for rustc_align
1 parent 2e83204 commit 156e2a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/assembly/naked-functions/wasm32.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
//@ [wasm32-wasip1] needs-llvm-components: webassembly
1010

1111
#![crate_type = "lib"]
12+
// FIXME(#82232, #143834): temporarily renamed to mitigate `#[align]` nameres ambiguity
13+
#![feature(rustc_attrs)]
1214
#![feature(no_core, asm_experimental_arch, f128, linkage, fn_align)]
1315
#![no_core]
1416

@@ -37,7 +39,7 @@ extern "C" fn nop() {
3739
#[unsafe(naked)]
3840
#[linkage = "weak"]
3941
// wasm functions cannot be aligned, so this has no effect
40-
#[align(32)]
42+
#[rustc_align(32)]
4143
extern "C" fn weak_aligned_nop() {
4244
naked_asm!("nop")
4345
}

0 commit comments

Comments
 (0)