mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
add test that exhausts argument registers
This commit is contained in:
parent
a03772d5cc
commit
46e8328056
1 changed files with 18 additions and 0 deletions
|
@ -4612,3 +4612,21 @@ fn linked_list_trmc() {
|
|||
i64
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-dev", feature = "gen-wasm"))]
|
||||
fn many_arguments() {
|
||||
// exhausts all argument registers on x86 and aarch
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
fun = \a,b,c,d, e,f,g,h, i ->
|
||||
(a + b + c + d) + (e + f + g + h) + i
|
||||
|
||||
fun 0i64 1 2 3 4 5 6 7 8
|
||||
"#
|
||||
),
|
||||
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8,
|
||||
i64
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue