diff --git a/tests/ui/asm/x86_64/issue-96797.rs b/tests/ui/asm/x86_64/issue-96797.rs index 17985d7e8c8fa..6c22c2f6c9463 100644 --- a/tests/ui/asm/x86_64/issue-96797.rs +++ b/tests/ui/asm/x86_64/issue-96797.rs @@ -14,10 +14,10 @@ fn my_func() {} global_asm!(" .globl call_foobar .type call_foobar,@function -.section .text.call_foobar,\"ax\",@progbits +.pushsection .text.call_foobar,\"ax\",@progbits call_foobar: jmp {} .size call_foobar, .-call_foobar -.text +.popsection ", sym foobar); fn foobar() {}