/external/libffi/testsuite/libffi.call/ |
D | cls_7_1_byte.c | 80 struct cls_struct_7byte res_dbl = { 0, 0, 0, 0, 0, 0, 0 }; in main() local 102 ffi_call(&cif, FFI_FN(cls_struct_7byte_fn), &res_dbl, args_dbl); in main() 104 printf("res: %d %d %d %d %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c, in main() 105 res_dbl.d, res_dbl.e, res_dbl.f, res_dbl.g); in main() 108 res_dbl.a = 0; in main() 109 res_dbl.b = 0; in main() 110 res_dbl.c = 0; in main() 111 res_dbl.d = 0; in main() 112 res_dbl.e = 0; in main() 113 res_dbl.f = 0; in main() [all …]
|
D | cls_6_1_byte.c | 78 struct cls_struct_6byte res_dbl = { 0, 0, 0, 0, 0, 0 }; in main() local 99 ffi_call(&cif, FFI_FN(cls_struct_6byte_fn), &res_dbl, args_dbl); in main() 101 printf("res: %d %d %d %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c, in main() 102 res_dbl.d, res_dbl.e, res_dbl.f); in main() 105 res_dbl.a = 0; in main() 106 res_dbl.b = 0; in main() 107 res_dbl.c = 0; in main() 108 res_dbl.d = 0; in main() 109 res_dbl.e = 0; in main() 110 res_dbl.f = 0; in main() [all …]
|
D | cls_5_1_byte.c | 76 struct cls_struct_5byte res_dbl = { 0, 0, 0, 0, 0 }; in main() local 96 ffi_call(&cif, FFI_FN(cls_struct_5byte_fn), &res_dbl, args_dbl); in main() 98 printf("res: %d %d %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c, in main() 99 res_dbl.d, res_dbl.e); in main() 102 res_dbl.a = 0; in main() 103 res_dbl.b = 0; in main() 104 res_dbl.c = 0; in main() 105 res_dbl.d = 0; in main() 106 res_dbl.e = 0; in main() 110 res_dbl = ((cls_struct_5byte(*)(cls_struct_5byte, cls_struct_5byte))(pcl))(g_dbl, f_dbl); in main() [all …]
|
D | cls_64byte.c | 86 struct cls_struct_64byte res_dbl; in main() local 113 ffi_call(&cif, FFI_FN(cls_struct_64byte_fn), &res_dbl, args_dbl); in main() 115 printf("res: %g %g %g %g %g %g %g %g\n", res_dbl.a, res_dbl.b, res_dbl.c, in main() 116 res_dbl.d, res_dbl.e, res_dbl.f, res_dbl.g, res_dbl.h); in main() 121 res_dbl = ((cls_struct_64byte(*)(cls_struct_64byte, in main() 127 printf("res: %g %g %g %g %g %g %g %g\n", res_dbl.a, res_dbl.b, res_dbl.c, in main() 128 res_dbl.d, res_dbl.e, res_dbl.f, res_dbl.g, res_dbl.h); in main()
|
D | cls_19byte.c | 75 struct cls_struct_19byte res_dbl; in main() local 95 ffi_call(&cif, FFI_FN(cls_struct_19byte_fn), &res_dbl, args_dbl); in main() 97 printf("res: %g %d %d %g %d\n", res_dbl.a, res_dbl.b, res_dbl.c, in main() 98 res_dbl.d, res_dbl.e); in main() 103 res_dbl = ((cls_struct_19byte(*)(cls_struct_19byte, cls_struct_19byte))(pcl))(g_dbl, f_dbl); in main() 105 printf("res: %g %d %d %g %d\n", res_dbl.a, res_dbl.b, res_dbl.c, in main() 106 res_dbl.d, res_dbl.e); in main()
|
D | cls_12byte.c | 67 struct cls_struct_12byte res_dbl; in main() local 85 ffi_call(&cif, FFI_FN(cls_struct_12byte_fn), &res_dbl, args_dbl); in main() 87 printf("res: %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main() 92 res_dbl.a = 0; in main() 93 res_dbl.b = 0; in main() 94 res_dbl.c = 0; in main() 96 res_dbl = ((cls_struct_12byte(*)(cls_struct_12byte, cls_struct_12byte))(pcl))(h_dbl, j_dbl); in main() 98 printf("res: %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main()
|
D | cls_5byte.c | 71 struct cls_struct_5byte res_dbl = { 0, 0, 0 }; in main() local 89 ffi_call(&cif, FFI_FN(cls_struct_5byte_fn), &res_dbl, args_dbl); in main() 91 printf("res: %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main() 94 res_dbl.a = 0; in main() 95 res_dbl.b = 0; in main() 96 res_dbl.c = 0; in main() 100 res_dbl = ((cls_struct_5byte(*)(cls_struct_5byte, cls_struct_5byte))(pcl))(g_dbl, f_dbl); in main() 102 printf("res: %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main()
|
D | cls_16byte.c | 68 struct cls_struct_16byte res_dbl; in main() local 86 ffi_call(&cif, FFI_FN(cls_struct_16byte_fn), &res_dbl, args_dbl); in main() 88 printf("res: %d %g %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main() 91 res_dbl.a = 0; in main() 92 res_dbl.b = 0.0; in main() 93 res_dbl.c = 0; in main() 97 res_dbl = ((cls_struct_16byte(*)(cls_struct_16byte, cls_struct_16byte))(pcl))(h_dbl, j_dbl); in main() 99 printf("res: %d %g %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main()
|
D | cls_6byte.c | 74 struct cls_struct_6byte res_dbl; in main() local 93 ffi_call(&cif, FFI_FN(cls_struct_6byte_fn), &res_dbl, args_dbl); in main() 95 printf("res: %d %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c, res_dbl.d); in main() 100 res_dbl = ((cls_struct_6byte(*)(cls_struct_6byte, cls_struct_6byte))(pcl))(g_dbl, f_dbl); in main() 102 printf("res: %d %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c, res_dbl.d); in main()
|
D | cls_7byte.c | 73 struct cls_struct_7byte res_dbl; in main() local 92 ffi_call(&cif, FFI_FN(cls_struct_7byte_fn), &res_dbl, args_dbl); in main() 94 printf("res: %d %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c, res_dbl.d); in main() 99 res_dbl = ((cls_struct_7byte(*)(cls_struct_7byte, cls_struct_7byte))(pcl))(g_dbl, f_dbl); in main() 101 printf("res: %d %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c, res_dbl.d); in main()
|
D | cls_18byte.c | 72 struct cls_struct_18byte res_dbl; in main() local 91 ffi_call(&cif, FFI_FN(cls_struct_18byte_fn), &res_dbl, args_dbl); in main() 93 printf("res: %g %d %d %g\n", res_dbl.a, res_dbl.b, res_dbl.c, res_dbl.d); in main() 98 res_dbl = ((cls_struct_18byte(*)(cls_struct_18byte, cls_struct_18byte))(pcl))(g_dbl, f_dbl); in main() 100 printf("res: %g %d %d %g\n", res_dbl.a, res_dbl.b, res_dbl.c, res_dbl.d); in main()
|
D | cls_4_1byte.c | 74 struct cls_struct_4_1byte res_dbl; in main() local 93 ffi_call(&cif, FFI_FN(cls_struct_4_1byte_fn), &res_dbl, args_dbl); in main() 95 printf("res: %d %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c, res_dbl.d); in main() 100 res_dbl = ((cls_struct_4_1byte(*)(cls_struct_4_1byte, cls_struct_4_1byte))(pcl))(g_dbl, f_dbl); in main() 102 printf("res: %d %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c, res_dbl.d); in main()
|
D | nested_struct.c | 107 struct cls_struct_combined res_dbl; in main() local 137 ffi_call(&cif, FFI_FN(cls_struct_combined_fn), &res_dbl, args_dbl); in main() 139 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() 140 CHECK( res_dbl.d.b == (e_dbl.b + f_dbl.ff + g_dbl.d.b)); in main() 141 CHECK( res_dbl.d.c == (e_dbl.c + f_dbl.ii + g_dbl.d.c)); in main() 142 CHECK( res_dbl.e.ii == (e_dbl.c + f_dbl.ii + g_dbl.e.ii)); in main() 143 CHECK( res_dbl.e.dd == (e_dbl.a + f_dbl.dd + g_dbl.e.dd)); in main() 144 CHECK( res_dbl.e.ff == (e_dbl.b + f_dbl.ff + g_dbl.e.ff)); in main() 148 res_dbl = ((cls_struct_combined(*)(cls_struct_16byte1, in main() 153 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() [all …]
|
D | cls_24byte.c | 81 struct cls_struct_24byte res_dbl; in main() local 104 ffi_call(&cif, FFI_FN(cls_struct_24byte_fn), &res_dbl, args_dbl); in main() 106 printf("res: %g %g %d %g\n", res_dbl.a, res_dbl.b, res_dbl.c, res_dbl.d); in main() 111 res_dbl = ((cls_struct_24byte(*)(cls_struct_24byte, in main() 117 printf("res: %g %g %d %g\n", res_dbl.a, res_dbl.b, res_dbl.c, res_dbl.d); in main()
|
D | cls_align_uint32.c | 68 struct cls_struct_align res_dbl; in main() local 86 ffi_call(&cif, FFI_FN(cls_struct_align_fn), &res_dbl, args_dbl); in main() 88 printf("res: %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main() 93 res_dbl = ((cls_struct_align(*)(cls_struct_align, cls_struct_align))(pcl))(g_dbl, f_dbl); in main() 95 printf("res: %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main()
|
D | cls_align_sint64.c | 68 struct cls_struct_align res_dbl; in main() local 86 ffi_call(&cif, FFI_FN(cls_struct_align_fn), &res_dbl, args_dbl); in main() 88 printf("res: %d %lld %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main() 93 res_dbl = ((cls_struct_align(*)(cls_struct_align, cls_struct_align))(pcl))(g_dbl, f_dbl); in main() 95 printf("res: %d %lld %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main()
|
D | cls_20byte1.c | 70 struct cls_struct_20byte res_dbl; in main() local 88 ffi_call(&cif, FFI_FN(cls_struct_20byte_fn), &res_dbl, args_dbl); in main() 90 printf("res: %d %g %g\n", res_dbl.a, res_dbl.b, res_dbl.c); in main() 95 res_dbl = ((cls_struct_20byte(*)(cls_struct_20byte, cls_struct_20byte))(pcl))(g_dbl, f_dbl); in main() 97 printf("res: %d %g %g\n", res_dbl.a, res_dbl.b, res_dbl.c); in main()
|
D | cls_3_1byte.c | 72 struct cls_struct_3_1byte res_dbl; in main() local 90 ffi_call(&cif, FFI_FN(cls_struct_3_1byte_fn), &res_dbl, args_dbl); in main() 92 printf("res: %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main() 97 res_dbl = ((cls_struct_3_1byte(*)(cls_struct_3_1byte, cls_struct_3_1byte))(pcl))(g_dbl, f_dbl); in main() 99 printf("res: %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main()
|
D | cls_align_double.c | 70 struct cls_struct_align res_dbl; in main() local 88 ffi_call(&cif, FFI_FN(cls_struct_align_fn), &res_dbl, args_dbl); in main() 90 printf("res: %d %g %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main() 95 res_dbl = ((cls_struct_align(*)(cls_struct_align, cls_struct_align))(pcl))(g_dbl, f_dbl); in main() 97 printf("res: %d %g %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main()
|
D | cls_align_float.c | 68 struct cls_struct_align res_dbl; in main() local 86 ffi_call(&cif, FFI_FN(cls_struct_align_fn), &res_dbl, args_dbl); in main() 88 printf("res: %d %g %d\n", res_dbl.a, (double)res_dbl.b, res_dbl.c); in main() 93 res_dbl = ((cls_struct_align(*)(cls_struct_align, cls_struct_align))(pcl))(g_dbl, f_dbl); in main() 95 printf("res: %d %g %d\n", res_dbl.a, (double)res_dbl.b, res_dbl.c); in main()
|
D | cls_align_sint16.c | 68 struct cls_struct_align res_dbl; in main() local 86 ffi_call(&cif, FFI_FN(cls_struct_align_fn), &res_dbl, args_dbl); in main() 88 printf("res: %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main() 93 res_dbl = ((cls_struct_align(*)(cls_struct_align, cls_struct_align))(pcl))(g_dbl, f_dbl); in main() 95 printf("res: %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main()
|
D | cls_20byte.c | 68 struct cls_struct_20byte res_dbl; in main() local 86 ffi_call(&cif, FFI_FN(cls_struct_20byte_fn), &res_dbl, args_dbl); in main() 88 printf("res: %g %g %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main() 93 res_dbl = ((cls_struct_20byte(*)(cls_struct_20byte, cls_struct_20byte))(pcl))(g_dbl, f_dbl); in main() 95 printf("res: %g %g %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main()
|
D | cls_align_pointer.c | 70 struct cls_struct_align res_dbl; in main() local 88 ffi_call(&cif, FFI_FN(cls_struct_align_fn), &res_dbl, args_dbl); in main() 90 printf("res: %d %lu %d\n", res_dbl.a, (unsigned long)res_dbl.b, res_dbl.c); in main() 95 res_dbl = ((cls_struct_align(*)(cls_struct_align, cls_struct_align))(pcl))(g_dbl, f_dbl); in main() 97 printf("res: %d %lu %d\n", res_dbl.a, (unsigned long)res_dbl.b, res_dbl.c); in main()
|
D | cls_align_sint32.c | 68 struct cls_struct_align res_dbl; in main() local 86 ffi_call(&cif, FFI_FN(cls_struct_align_fn), &res_dbl, args_dbl); in main() 88 printf("res: %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main() 93 res_dbl = ((cls_struct_align(*)(cls_struct_align, cls_struct_align))(pcl))(g_dbl, f_dbl); in main() 95 printf("res: %d %d %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main()
|
D | cls_align_uint64.c | 69 struct cls_struct_align res_dbl; in main() local 87 ffi_call(&cif, FFI_FN(cls_struct_align_fn), &res_dbl, args_dbl); in main() 89 printf("res: %d %lld %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main() 94 res_dbl = ((cls_struct_align(*)(cls_struct_align, cls_struct_align))(pcl))(g_dbl, f_dbl); in main() 96 printf("res: %d %lld %d\n", res_dbl.a, res_dbl.b, res_dbl.c); in main()
|