about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-10-06 11:02:11 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-10-06 11:02:11 +0000
commitecf271cfb6224fae07a2b096bfbae22c6112b011 (patch)
tree1ad252dbb15fa2932b5269c7e1092c401471479b
parent9facf0bf72acf6cbf6ecb6c28c4b5364efc6b83f (diff)
downloadrust-ecf271cfb6224fae07a2b096bfbae22c6112b011.tar.gz
rust-ecf271cfb6224fae07a2b096bfbae22c6112b011.zip
Use pushsection/popsection
-rw-r--r--tests/ui/asm/x86_64/issue-96797.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/asm/x86_64/issue-96797.rs b/tests/ui/asm/x86_64/issue-96797.rs
index 17985d7e8c8..6c22c2f6c94 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() {}