diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-05-03 08:45:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-03 08:45:02 +0200 |
| commit | ca67f4da76fbc952b51927f4db7bb3f532c423c7 (patch) | |
| tree | df3b4b147a9e8479102b0eeddb86ef7a6253acc6 /tests | |
| parent | 69e0844a460c25272711f4a6724ad1f4526aa2ca (diff) | |
| parent | 842858f7650cae36d1b7194e4c758f42b2ca700c (diff) | |
| download | rust-ca67f4da76fbc952b51927f4db7bb3f532c423c7.tar.gz rust-ca67f4da76fbc952b51927f4db7bb3f532c423c7.zip | |
Rollup merge of #140505 - petrochenkov:expquote, r=bjorn3
linker: Quote symbol names in .def files To support weird symbol names, including dots in particular. cc [#134767](https://github.com/rust-lang/rust/pull/134767#issuecomment-2839397610)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/linking/weird-export-names.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/linking/weird-export-names.rs b/tests/ui/linking/weird-export-names.rs new file mode 100644 index 00000000000..8fb2dc6bf5e --- /dev/null +++ b/tests/ui/linking/weird-export-names.rs @@ -0,0 +1,10 @@ +//@ build-pass +//@ needs-crate-type: cdylib + +#![crate_type = "cdylib"] + +#[export_name = "foo.0123"] +pub extern "C" fn foo() {} + +#[export_name = "EXPORTS"] +pub extern "C" fn bar() {} |
