5 // Checks that multiple clobber_abi options can be used
7 #![feature(asm, asm_sym)]
9 extern "sysv64" fn foo(x: i32) -> i32 {
13 extern "win64" fn bar(x: i32) -> i32 {
20 // call `foo` with `x` as the input, and then `bar` with the output of `foo`
21 // and output that to `y`
24 "call {}; mov rcx, rax; call {}",
29 clobber_abi("sysv64", "win64"),
32 assert_eq!((x, y), (8, 12));