]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libffi/testsuite/libffi.call/struct2.c
Merge libffi to upstream commit c82cc159426d8d4402375fa1ae3f045b9cf82e16
[thirdparty/gcc.git] / libffi / testsuite / libffi.call / struct2.c
index d85385e7d3f235c09dd2d6809c25bc22e0be4531..5077a5ee45a5fe6f1658c0aa498450026a616f02 100644 (file)
@@ -13,7 +13,7 @@ typedef struct
   double d2;
 } test_structure_2;
 
-static test_structure_2 struct2(test_structure_2 ts)
+static test_structure_2 ABI_ATTR struct2(test_structure_2 ts)
 {
   ts.d1--;
   ts.d2--;
@@ -46,7 +46,7 @@ int main (void)
   values[0] = &ts2_arg;
   
   /* Initialize the cif */
-  CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, &ts2_type, args) == FFI_OK);
+  CHECK(ffi_prep_cif(&cif, ABI_NUM, 1, &ts2_type, args) == FFI_OK);
   
   ts2_arg.d1 = 5.55;
   ts2_arg.d2 = 6.66;