summaryrefslogtreecommitdiff
path: root/testsuite/libffi.call/nested_struct3.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_struct3.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_struct3.c')
-rw-r--r--testsuite/libffi.call/nested_struct3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/libffi.call/nested_struct3.c b/testsuite/libffi.call/nested_struct3.c
index 58aa853..ab18cad 100644
--- a/testsuite/libffi.call/nested_struct3.c
+++ b/testsuite/libffi.call/nested_struct3.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 = { 1LL, 7};
+ struct B f_dbl = {{12LL , 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 = { 1LL, 7};
- struct B f_dbl = {{12LL , 127}, 99};
-
- struct B res_dbl;
-
cls_struct_fields[0] = &ffi_type_uint64;
cls_struct_fields[1] = &ffi_type_uchar;
cls_struct_fields[2] = NULL;