aboutsummaryrefslogtreecommitdiff
path: root/libffi/testsuite/libffi.call/nested_struct10.c
diff options
context:
space:
mode:
authorAnthony Green <green@gcc.gnu.org>2012-12-26 16:28:02 +0000
committerAnthony Green <green@gcc.gnu.org>2012-12-26 16:28:02 +0000
commitb4b575ce7854f4a49de8de93f38b7639e01b040b (patch)
treeef354e445015ccf6c34c675cf123ef8ca5128a8c /libffi/testsuite/libffi.call/nested_struct10.c
parentdc3a31d4767c19ab47211e29fbc3c8866df8d8a1 (diff)
downloadgcc-b4b575ce7854f4a49de8de93f38b7639e01b040b.zip
gcc-b4b575ce7854f4a49de8de93f38b7639e01b040b.tar.gz
gcc-b4b575ce7854f4a49de8de93f38b7639e01b040b.tar.bz2
libffi merge
From-SVN: r194722
Diffstat (limited to 'libffi/testsuite/libffi.call/nested_struct10.c')
-rw-r--r--libffi/testsuite/libffi.call/nested_struct10.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libffi/testsuite/libffi.call/nested_struct10.c b/libffi/testsuite/libffi.call/nested_struct10.c
index d6a718b..34a74e7 100644
--- a/libffi/testsuite/libffi.call/nested_struct10.c
+++ b/libffi/testsuite/libffi.call/nested_struct10.c
@@ -67,6 +67,12 @@ int main (void)
ffi_type cls_struct_type, cls_struct_type1, cls_struct_type2;
ffi_type* dbl_arg_types[4];
+ struct A e_dbl = { 1LL, 7};
+ struct B f_dbl = { 99, {12LL , 127}, 255};
+ struct C g_dbl = { 2LL, 9};
+
+ struct B res_dbl;
+
cls_struct_type.size = 0;
cls_struct_type.alignment = 0;
cls_struct_type.type = FFI_TYPE_STRUCT;
@@ -82,12 +88,6 @@ int main (void)
cls_struct_type2.type = FFI_TYPE_STRUCT;
cls_struct_type2.elements = cls_struct_fields2;
- struct A e_dbl = { 1LL, 7};
- struct B f_dbl = { 99, {12LL , 127}, 255};
- struct C g_dbl = { 2LL, 9};
-
- struct B res_dbl;
-
cls_struct_fields[0] = &ffi_type_uint64;
cls_struct_fields[1] = &ffi_type_uchar;
cls_struct_fields[2] = NULL;