We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6994ee3 commit c84f1b7Copy full SHA for c84f1b7
tests/run-make/issue-44282-questionmark-mangle/main.rs
@@ -0,0 +1,11 @@
1
+#![crate_type = "cdylib"]
2
+
3
+#[no_mangle]
4
+pub extern "C" fn foo(a: i32, b: i32) -> i32 {
5
+ 1
6
+}
7
8
+#[export_name = "?bar@@YAXXZ"]
9
+pub extern "C" fn bar(a: i32, b: i32) -> i32 {
10
+ 2
11
tests/run-make/issue-44282-questionmark-mangle/rmake.rs
@@ -0,0 +1,9 @@
+// This test verifies that functions including a leading question mark
+// in their export_name attribute successfully compile.
+// This is only an issue on Windows 32-bit.
+use run_make_support::{run, run_fail, rustc};
+fn main() {
+ rustc().input("main.rs").target("i686-pc-windows-msvc").run();
0 commit comments