summaryrefslogtreecommitdiff
path: root/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c
diff options
context:
space:
mode:
authortduehr <tduehr@gmail.com>2015-03-19 16:44:33 -0700
committertduehr <tduehr@gmail.com>2015-06-17 09:01:47 -0500
commite9d07620ae8ac090863998d22ab7ca0db9cd1e89 (patch)
treeba0c75a8e11e88123926cb9817a3bb0a7c1b157b /ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c
parent194784d60f53e242a8aab88c216126785dc047dd (diff)
downloadffi-libffi-3.2.1.tar.gz
update libffilibffi-3.2.1
Diffstat (limited to 'ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c')
-rw-r--r--ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c b/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c
index 8aa527e..c15e3a0 100644
--- a/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c
+++ b/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c
@@ -77,6 +77,12 @@ int main (void)
ffi_type cls_struct_type, cls_struct_type1, cls_struct_type2;
ffi_type* dbl_arg_types[5];
+ struct cls_struct_16byte1 e_dbl = { 9.0, 2.0, 6};
+ struct cls_struct_16byte2 f_dbl = { 1, 2.0, 3.0};
+ struct cls_struct_combined g_dbl = {{4.0, 5.0, 6},
+ {3, 1.0, 8.0}};
+ struct cls_struct_combined res_dbl;
+
cls_struct_type.size = 0;
cls_struct_type.alignment = 0;
cls_struct_type.type = FFI_TYPE_STRUCT;
@@ -92,12 +98,6 @@ int main (void)
cls_struct_type2.type = FFI_TYPE_STRUCT;
cls_struct_type2.elements = cls_struct_fields2;
- struct cls_struct_16byte1 e_dbl = { 9.0, 2.0, 6};
- struct cls_struct_16byte2 f_dbl = { 1, 2.0, 3.0};
- struct cls_struct_combined g_dbl = {{4.0, 5.0, 6},
- {3, 1.0, 8.0}};
- struct cls_struct_combined res_dbl;
-
cls_struct_fields[0] = &ffi_type_double;
cls_struct_fields[1] = &ffi_type_float;
cls_struct_fields[2] = &ffi_type_sint;