summaryrefslogtreecommitdiff
path: root/testsuite/libffi.call/nested_struct.c
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2013-12-16 17:17:41 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2013-12-16 17:17:41 +0000
commit77d4586cc47e8f4c02278afbc220145bba0d442b (patch)
treeba088e5e4c09032de0d5a4c06521c514a61352dd /testsuite/libffi.call/nested_struct.c
parent7e282893378b9ea580e21e3ec48d2ad49d8735c0 (diff)
parent5c455874a36d62983b63c2ea33fdc861be417d18 (diff)
downloadlibffi-baserock/morph.tar.gz
Merge branch 'baserock/pedroalvarez/power-port' into baserock/morphbaserock/morph
Reviewed-by: Ben Brown Reviewed-by: Daniel Silverstone
Diffstat (limited to 'testsuite/libffi.call/nested_struct.c')
-rw-r--r--testsuite/libffi.call/nested_struct.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/libffi.call/nested_struct.c b/testsuite/libffi.call/nested_struct.c
index 8aa527e..c15e3a0 100644
--- a/testsuite/libffi.call/nested_struct.c
+++ b/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;