We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39a69a9 commit 64916c9Copy full SHA for 64916c9
tests/codegen/abi-win64-zst.rs
@@ -1,3 +1,5 @@
1
+//@ compile-flags: -Z merge-functions=disabled
2
+
3
//@ revisions: linux
4
//@[linux] compile-flags: --target x86_64-unknown-linux-gnu
5
//@[linux] needs-llvm-components: x86
@@ -31,6 +33,12 @@ extern "sysv64" fn pass_zst_sysv64(_: ()) {}
31
33
#[no_mangle]
32
34
extern "vectorcall" fn pass_zst_vectorcall(_: ()) {}
35
36
+// windows-gnu: define void @pass_zst_fastcall()
37
+// windows-msvc: define void @pass_zst_fastcall()
38
+#[no_mangle]
39
+#[cfg(windows)] // "fastcall" is not valid on 64bit Linux
40
+extern "fastcall" fn pass_zst_fastcall(_: ()) {}
41
42
// For `extern "C"` functions, ZST are *not* ignored on windows-gnu.
43
// That's likely an accident on their side but the ABI is what it is.
44
0 commit comments