about summary refs log tree commit diff
path: root/tests/codegen/function-return.rs
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2024-09-25 10:23:30 +0200
committerAlice Ryhl <aliceryhl@google.com>2024-09-25 15:53:53 +0200
commit540e41f8b3822661d2f9d0768bbfe1dd3bb65e4d (patch)
tree2e46a4228ad1b4528eb5edeb10da225a1ee4bfc2 /tests/codegen/function-return.rs
parent2933f68abefa9e56ac336cb686a435a54e8a1f21 (diff)
downloadrust-540e41f8b3822661d2f9d0768bbfe1dd3bb65e4d.tar.gz
rust-540e41f8b3822661d2f9d0768bbfe1dd3bb65e4d.zip
Add missing module flags for function-return=thunk-extern
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}