about summary refs log tree commit diff
path: root/tests/codegen/function-arguments.rs
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-02-19 15:02:49 +0100
committerNikita Popov <npopov@redhat.com>2024-04-25 11:43:47 +0900
commit3695af697efa26b0ea3b67739ade3ecc3929154e (patch)
tree0b34ec36942c528246b5f3a85014f6952d8d99c3 /tests/codegen/function-arguments.rs
parentaa067fb984d36462548bb785da221bfaf38253f0 (diff)
downloadrust-3695af697efa26b0ea3b67739ade3ecc3929154e.tar.gz
rust-3695af697efa26b0ea3b67739ade3ecc3929154e.zip
Set writable and dead_on_unwind attributes for sret arguments
Diffstat (limited to 'tests/codegen/function-arguments.rs')
-rw-r--r--tests/codegen/function-arguments.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/function-arguments.rs b/tests/codegen/function-arguments.rs
index 468ec0a7753..570d32f78fa 100644
--- a/tests/codegen/function-arguments.rs
+++ b/tests/codegen/function-arguments.rs
@@ -198,7 +198,7 @@ pub fn notunpin_box(x: Box<NotUnpin>) -> Box<NotUnpin> {
   x
 }
 
-// CHECK: @struct_return(ptr noalias nocapture noundef sret([32 x i8]) align 4 dereferenceable(32){{( %_0)?}})
+// CHECK: @struct_return(ptr{{( dead_on_unwind)?}} noalias nocapture noundef{{( writable)?}} sret([32 x i8]) align 4 dereferenceable(32){{( %_0)?}})
 #[no_mangle]
 pub fn struct_return() -> S {
   S {