Debian Codegraph @

gcc/testsuite/rust/debug/win64-abi.rs

raw
1 // { dg-do compile { target { x86_64-*-* } } }
2 // { dg-options "-gdwarf-5 -dA -w -O1 -m64" }
3 pub extern "win64" fn id(num: i32) -> i32 {
4 num
5 }
6
7 fn main() {
8 // MS ABI dictates that the first argument is ecx instead of edi from the sysv world
9 // { dg-final { scan-assembler "%ecx, %eax" } }
10 id(1);
11 }