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:
Josh Triplett
2014-03-16 20:29:27 -07:00
parent 4d4d368e5a
commit e48918ecf8
25 changed files with 90 additions and 423 deletions

View File

@@ -13,7 +13,7 @@ typedef struct
int i;
} test_structure_9;
static test_structure_9 struct9 (test_structure_9 ts)
static test_structure_9 ABI_ATTR struct9 (test_structure_9 ts)
{
ts.f += 1;
ts.i += 1;
@@ -47,7 +47,7 @@ int main (void)
values[0] = &ts9_arg;
/* Initialize the cif */
CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, &ts9_type, args) == FFI_OK);
CHECK(ffi_prep_cif(&cif, ABI_NUM, 1, &ts9_type, args) == FFI_OK);
ts9_arg.f = 5.55f;
ts9_arg.i = 5;