Fix: Arguments that don't fit into registeres are passed in the incorrect order

This commit is contained in:
Marvin Kaiser
2019-12-17 17:22:44 +01:00
parent 5745062704
commit 08f486203b
3 changed files with 11 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ int argumentTest(char* name, int expected, int result) {
int runFunctionCallTests () {
int failed = 0;
printf("\nFunctionCallTests Tests \n");
printf("\nFunction Call Tests \n");
// Checks that parameters are correctly passed from gcc to functions
failed += argumentTest("arg1", 1, arg1(1, 2, 3, 4, 5, 6, 7, 8, 9, 10));
failed += argumentTest("arg2", 2, arg2(1, 2, 3, 4, 5, 6, 7, 8, 9, 10));