about summary refs log tree commit diff
path: root/tests/codegen/function-return.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-10-14 15:11:07 +0000
committerbors <bors@rust-lang.org>2024-10-14 15:11:07 +0000
commitbd8f2afc449999aa6310cc9f42029d9bfdd5e910 (patch)
tree6eebb25d13a6ace45d712257d931527662949fdc /tests/codegen/function-return.rs
parent15f0242c74c91cce4a8fd8b17ccfbaf46b03ec62 (diff)
parent543d226589d152a27a5c150e415b451e50986c79 (diff)
downloadrust-bd8f2afc449999aa6310cc9f42029d9bfdd5e910.tar.gz
rust-bd8f2afc449999aa6310cc9f42029d9bfdd5e910.zip
Auto merge of #3970 - RalfJung:rustup, r=RalfJung
Rustup
Diffstat (limited to 'tests/codegen/function-return.rs')
-rw-r--r--tests/codegen/function-return.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/codegen/function-return.rs b/tests/codegen/function-return.rs
index 0ca1a41ee86..2b9de4e1478 100644
--- a/tests/codegen/function-return.rs
+++ b/tests/codegen/function-return.rs
@@ -26,3 +26,9 @@ pub fn foo() {
     // keep-thunk-extern: attributes #0 = { {{.*}}fn_ret_thunk_extern{{.*}} }
     // thunk-extern-keep-NOT: fn_ret_thunk_extern
 }
+
+// unset-NOT: !{{[0-9]+}} = !{i32 4, !"function_return_thunk_extern", i32 1}
+// keep-NOT: !{{[0-9]+}} = !{i32 4, !"function_return_thunk_extern", i32 1}
+// thunk-extern: !{{[0-9]+}} = !{i32 4, !"function_return_thunk_extern", i32 1}
+// keep-thunk-extern: !{{[0-9]+}} = !{i32 4, !"function_return_thunk_extern", i32 1}
+// thunk-extern-keep-NOT: !{{[0-9]+}} = !{i32 4, !"function_return_thunk_extern", i32 1}