testsuite: Add ABIs to the test matrix; unify tests across ABIs
This eliminates all the *_win32.c tests in favor of the tests they were branched from, and expands test coverage to run many more tests on stdcall, thiscall, and fastcall. This same mechanism also supports testing any other target that has multiple ABIs.
This commit is contained in:
@@ -22,7 +22,7 @@ foo (uint8_t a, uint8_t b, uint8_t c, uint8_t d,
|
||||
return a + b + c + d + e + f + g;
|
||||
}
|
||||
|
||||
uint8_t
|
||||
uint8_t ABI_ATTR
|
||||
bar (uint8_t a, uint8_t b, uint8_t c, uint8_t d,
|
||||
uint8_t e, uint8_t f, uint8_t g)
|
||||
{
|
||||
@@ -42,7 +42,7 @@ main (void)
|
||||
for (i = 0; i < NARGS; ++i)
|
||||
ffitypes[i] = &ffi_type_uint8;
|
||||
|
||||
CHECK (ffi_prep_cif (&cif, FFI_DEFAULT_ABI, NARGS,
|
||||
CHECK (ffi_prep_cif (&cif, ABI_NUM, NARGS,
|
||||
&ffi_type_uint8, ffitypes) == FFI_OK);
|
||||
|
||||
for (i = 0; i < NARGS; ++i)
|
||||
|
||||
Reference in New Issue
Block a user