about summary refs log tree commit diff
path: root/tests/codegen/function-arguments-noopt.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-05-15 21:15:28 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2023-07-08 15:38:40 +0200
commitd7983a2f231a279984fc70eb428b936930eaa45c (patch)
tree7e289bf73e50ac6d40b8d03575a34d6d32bb7dee /tests/codegen/function-arguments-noopt.rs
parentd4096e0412ac5de785d739a0aa2b1c1c7b9d3b7d (diff)
downloadrust-d7983a2f231a279984fc70eb428b936930eaa45c.tar.gz
rust-d7983a2f231a279984fc70eb428b936930eaa45c.zip
Always name the return place.
Diffstat (limited to 'tests/codegen/function-arguments-noopt.rs')
-rw-r--r--tests/codegen/function-arguments-noopt.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codegen/function-arguments-noopt.rs b/tests/codegen/function-arguments-noopt.rs
index 0c62e0d35e3..35f31eba3b1 100644
--- a/tests/codegen/function-arguments-noopt.rs
+++ b/tests/codegen/function-arguments-noopt.rs
@@ -42,7 +42,7 @@ pub fn borrow_call(x: &i32, f: fn(&i32) -> &i32) -> &i32 {
   f(x)
 }
 
-// CHECK: void @struct_({{%S\*|ptr}} sret(%S){{( %0)?}}, {{%S\*|ptr}} %x)
+// CHECK: void @struct_({{%S\*|ptr}} sret(%S){{( %_0)?}}, {{%S\*|ptr}} %x)
 #[no_mangle]
 pub fn struct_(x: S) -> S {
   x
@@ -51,7 +51,7 @@ pub fn struct_(x: S) -> S {
 // CHECK-LABEL: @struct_call
 #[no_mangle]
 pub fn struct_call(x: S, f: fn(S) -> S) -> S {
-  // CHECK: call void %f({{%S\*|ptr}} sret(%S){{( %0)?}}, {{%S\*|ptr}} %{{.+}})
+  // CHECK: call void %f({{%S\*|ptr}} sret(%S){{( %_0)?}}, {{%S\*|ptr}} %{{.+}})
   f(x)
 }