Skip to content

Commit 7661923

Browse files
committed
also test sysv64 ABI
1 parent 40abd58 commit 7661923

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/codegen/abi-win64-zst.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@
1717
#[lang = "sized"]
1818
trait Sized {}
1919

20-
// Make sure the argument is always ignored when explicitly requesting "win64" ABI.
20+
// Make sure the argument is always ignored when explicitly requesting "win64" or "sysv64" ABI.
2121

2222
// CHECK: define win64cc void @pass_zst_win64()
2323
#[no_mangle]
2424
extern "win64" fn pass_zst_win64(_: ()) {}
2525

26+
// CHECK: define x86_64_sysvcc void @pass_zst_sysv64()
27+
#[no_mangle]
28+
extern "sysv64" fn pass_zst_sysv64(_: ()) {}
29+
2630
// For `extern "C"` functions, ZST are *not* ignored on windows-gnu.
2731
// That's likely an accident on their side but the ABI is what it is.
2832

0 commit comments

Comments
 (0)