Enforce win64 abi test to always run on -m64 mode

Fixes #1439
This commit is contained in:
Philip Herron 2022-08-09 16:35:37 +01:00
parent fefd8633dc
commit 6496291f34
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
// { dg-do compile { target { x86_64-*-* } } }
// { dg-options "-gdwarf-5 -dA -w -O1 -m64" }
pub extern "win64" fn square(num: i32) -> i32 {
num * num
}
fn main() {
// { dg-do compile { target { x86_64-*-* } } }
// { dg-options "-gdwarf-5 -dA -w -O1" }
// MS ABI dictates that the first argument is ecx instead of edi from the sysv world
// { dg-final { scan-assembler "%ecx, %ecx" } }
square(1);