diff options
| author | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-05-23 15:26:31 +0200 |
|---|---|---|
| committer | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-05-23 16:54:33 +0200 |
| commit | dc1ed9ddd7d15dfe75453b68bc1da8ae32dbe1f7 (patch) | |
| tree | b0b4f0b57828d3c715d47d28b3529788fa1efb2e /tests/codegen/issues | |
| parent | 5fdeae610db96d048090b1efaf6b7a2f54aeda12 (diff) | |
| download | rust-dc1ed9ddd7d15dfe75453b68bc1da8ae32dbe1f7.tar.gz rust-dc1ed9ddd7d15dfe75453b68bc1da8ae32dbe1f7.zip | |
codegen: allow the dso_local attribute
The attribute is injected into most items when static relocation is enabled in a target.
Diffstat (limited to 'tests/codegen/issues')
| -rw-r--r-- | tests/codegen/issues/issue-86106.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codegen/issues/issue-86106.rs b/tests/codegen/issues/issue-86106.rs index c0be7fab2f3..be5034dcfbd 100644 --- a/tests/codegen/issues/issue-86106.rs +++ b/tests/codegen/issues/issue-86106.rs @@ -7,7 +7,7 @@ #![crate_type = "lib"] -// CHECK-LABEL: define void @string_new +// CHECK-LABEL: define {{(dso_local )?}}void @string_new #[no_mangle] pub fn string_new() -> String { // CHECK: store ptr inttoptr @@ -17,7 +17,7 @@ pub fn string_new() -> String { String::new() } -// CHECK-LABEL: define void @empty_to_string +// CHECK-LABEL: define {{(dso_local )?}}void @empty_to_string #[no_mangle] pub fn empty_to_string() -> String { // CHECK: store ptr inttoptr |
