summaryrefslogtreecommitdiff
path: root/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.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_struct4.c
parent194784d60f53e242a8aab88c216126785dc047dd (diff)
downloadffi-e9d07620ae8ac090863998d22ab7ca0db9cd1e89.tar.gz
update libffilibffi-3.2.1
Diffstat (limited to 'ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.c')
-rw-r--r--ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.c b/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.c
index 98e491e..2ffb4d6 100644
--- a/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.c
+++ b/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.c
@@ -58,6 +58,11 @@ int main (void)
ffi_type cls_struct_type, cls_struct_type1;
ffi_type* dbl_arg_types[3];
+ struct A e_dbl = { 1.0, 7};
+ struct B f_dbl = {{12.0 , 127}, 99};
+
+ struct B res_dbl;
+
cls_struct_type.size = 0;
cls_struct_type.alignment = 0;
cls_struct_type.type = FFI_TYPE_STRUCT;
@@ -68,11 +73,6 @@ int main (void)
cls_struct_type1.type = FFI_TYPE_STRUCT;
cls_struct_type1.elements = cls_struct_fields1;
- struct A e_dbl = { 1.0, 7};
- struct B f_dbl = {{12.0 , 127}, 99};
-
- struct B res_dbl;
-
cls_struct_fields[0] = &ffi_type_double;
cls_struct_fields[1] = &ffi_type_uchar;
cls_struct_fields[2] = NULL;