/external/python/cpython2/Modules/_ctypes/libffi/testsuite/libffi.call/ |
D | nested_struct.c | 82 struct cls_struct_combined g_dbl = {{4.0, 5.0, 6}, in main() local 126 args_dbl[2] = &g_dbl; in main() 131 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() 132 CHECK( res_dbl.d.b == (e_dbl.b + f_dbl.ff + g_dbl.d.b)); in main() 133 CHECK( res_dbl.d.c == (e_dbl.c + f_dbl.ii + g_dbl.d.c)); in main() 134 CHECK( res_dbl.e.ii == (e_dbl.c + f_dbl.ii + g_dbl.e.ii)); in main() 135 CHECK( res_dbl.e.dd == (e_dbl.a + f_dbl.dd + g_dbl.e.dd)); in main() 136 CHECK( res_dbl.e.ff == (e_dbl.b + f_dbl.ff + g_dbl.e.ff)); in main() 143 (code))(e_dbl, f_dbl, g_dbl); in main() 145 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() [all …]
|
D | nested_struct1.c | 86 struct cls_struct_combined g_dbl = {{4.0, 5.0, 6}, in main() local 132 args_dbl[2] = &g_dbl; in main() 138 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() 139 CHECK( res_dbl.d.b == (e_dbl.b + f_dbl.ff + g_dbl.d.b)); in main() 140 CHECK( res_dbl.d.c == (e_dbl.c + f_dbl.ii + g_dbl.d.c)); in main() 141 CHECK( res_dbl.e.ii == (e_dbl.c + f_dbl.ii + g_dbl.e.ii)); in main() 142 CHECK( res_dbl.e.dd == (e_dbl.a + f_dbl.dd + g_dbl.e.dd)); in main() 143 CHECK( res_dbl.e.ff == (e_dbl.b + f_dbl.ff + g_dbl.e.ff)); in main() 151 (code))(e_dbl, f_dbl, g_dbl, h_dbl); in main() 153 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() [all …]
|
D | nested_struct9.c | 71 struct C g_dbl = { 2, 9}; in main() local 113 args_dbl[2] = &g_dbl; in main() 118 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 119 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 120 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main() 124 res_dbl = ((B(*)(A, B, C))(code))(e_dbl, f_dbl, g_dbl); in main() 126 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 127 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 128 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | nested_struct8.c | 71 struct C g_dbl = { 2LL, 9}; in main() local 113 args_dbl[2] = &g_dbl; in main() 118 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 119 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 120 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main() 124 res_dbl = ((B(*)(A, B, C))(code))(e_dbl, f_dbl, g_dbl); in main() 126 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 127 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 128 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | nested_struct6.c | 71 struct C g_dbl = { 2, 9}; in main() local 113 args_dbl[2] = &g_dbl; in main() 118 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 119 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 120 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main() 124 res_dbl = ((B(*)(A, B, C))(code))(e_dbl, f_dbl, g_dbl); in main() 126 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 127 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 128 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | nested_struct10.c | 72 struct C g_dbl = { 2LL, 9}; in main() local 115 args_dbl[2] = &g_dbl; in main() 120 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + f_dbl.z + g_dbl.d)); in main() 121 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 122 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main() 126 res_dbl = ((B(*)(A, B, C))(code))(e_dbl, f_dbl, g_dbl); in main() 128 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + f_dbl.z + g_dbl.d)); in main() 129 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 130 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | cls_1_1byte.c | 53 struct cls_struct_1_1byte g_dbl = { 12 }; in main() local 72 args_dbl[0] = &g_dbl; in main() 83 res_dbl = ((cls_struct_1_1byte(*)(cls_struct_1_1byte, cls_struct_1_1byte))(code))(g_dbl, f_dbl); in main()
|
D | cls_8byte.c | 52 struct cls_struct_8byte g_dbl = { 1, 2.0 }; in main() local 72 args_dbl[0] = &g_dbl; in main() 82 res_dbl = ((cls_struct_8byte(*)(cls_struct_8byte, cls_struct_8byte))(code))(g_dbl, f_dbl); in main()
|
D | cls_3byte2.c | 53 struct cls_struct_3byte_1 g_dbl = { 15, 125 }; in main() local 73 args_dbl[0] = &g_dbl; in main() 84 res_dbl = ((cls_struct_3byte_1(*)(cls_struct_3byte_1, cls_struct_3byte_1))(code))(g_dbl, f_dbl); in main()
|
/external/libffi/testsuite/libffi.closures/ |
D | nested_struct.c | 82 struct cls_struct_combined g_dbl = {{4.0, 5.0, 6}, in main() local 126 args_dbl[2] = &g_dbl; in main() 131 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() 132 CHECK( res_dbl.d.b == (e_dbl.b + f_dbl.ff + g_dbl.d.b)); in main() 133 CHECK( res_dbl.d.c == (e_dbl.c + f_dbl.ii + g_dbl.d.c)); in main() 134 CHECK( res_dbl.e.ii == (e_dbl.c + f_dbl.ii + g_dbl.e.ii)); in main() 135 CHECK( res_dbl.e.dd == (e_dbl.a + f_dbl.dd + g_dbl.e.dd)); in main() 136 CHECK( res_dbl.e.ff == (e_dbl.b + f_dbl.ff + g_dbl.e.ff)); in main() 143 (code))(e_dbl, f_dbl, g_dbl); in main() 145 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() [all …]
|
D | nested_struct1.c | 86 struct cls_struct_combined g_dbl = {{4.0, 5.0, 6}, in main() local 132 args_dbl[2] = &g_dbl; in main() 138 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() 139 CHECK( res_dbl.d.b == (e_dbl.b + f_dbl.ff + g_dbl.d.b)); in main() 140 CHECK( res_dbl.d.c == (e_dbl.c + f_dbl.ii + g_dbl.d.c)); in main() 141 CHECK( res_dbl.e.ii == (e_dbl.c + f_dbl.ii + g_dbl.e.ii)); in main() 142 CHECK( res_dbl.e.dd == (e_dbl.a + f_dbl.dd + g_dbl.e.dd)); in main() 143 CHECK( res_dbl.e.ff == (e_dbl.b + f_dbl.ff + g_dbl.e.ff)); in main() 151 (code))(e_dbl, f_dbl, g_dbl, h_dbl); in main() 153 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() [all …]
|
D | nested_struct6.c | 71 struct C g_dbl = { 2, 9}; in main() local 113 args_dbl[2] = &g_dbl; in main() 118 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 119 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 120 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main() 124 res_dbl = ((B(*)(A, B, C))(code))(e_dbl, f_dbl, g_dbl); in main() 126 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 127 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 128 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | nested_struct8.c | 71 struct C g_dbl = { 2LL, 9}; in main() local 113 args_dbl[2] = &g_dbl; in main() 118 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 119 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 120 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main() 124 res_dbl = ((B(*)(A, B, C))(code))(e_dbl, f_dbl, g_dbl); in main() 126 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 127 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 128 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | nested_struct9.c | 71 struct C g_dbl = { 2, 9}; in main() local 113 args_dbl[2] = &g_dbl; in main() 118 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 119 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 120 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main() 124 res_dbl = ((B(*)(A, B, C))(code))(e_dbl, f_dbl, g_dbl); in main() 126 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 127 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 128 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | nested_struct10.c | 73 struct C g_dbl = { 2LL, 9}; in main() local 116 args_dbl[2] = &g_dbl; in main() 121 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + f_dbl.z + g_dbl.d)); in main() 122 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 123 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main() 127 res_dbl = ((B(*)(A, B, C))(code))(e_dbl, f_dbl, g_dbl); in main() 129 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + f_dbl.z + g_dbl.d)); in main() 130 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 131 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | cls_1_1byte.c | 53 struct cls_struct_1_1byte g_dbl = { 12 }; in main() local 72 args_dbl[0] = &g_dbl; in main() 83 res_dbl = ((cls_struct_1_1byte(*)(cls_struct_1_1byte, cls_struct_1_1byte))(code))(g_dbl, f_dbl); in main()
|
D | cls_3byte2.c | 53 struct cls_struct_3byte_1 g_dbl = { 15, 125 }; in main() local 73 args_dbl[0] = &g_dbl; in main() 84 res_dbl = ((cls_struct_3byte_1(*)(cls_struct_3byte_1, cls_struct_3byte_1))(code))(g_dbl, f_dbl); in main()
|
D | cls_3byte1.c | 53 struct cls_struct_3byte g_dbl = { 12, 119 }; in main() local 73 args_dbl[0] = &g_dbl; in main() 84 res_dbl = ((cls_struct_3byte(*)(cls_struct_3byte, cls_struct_3byte))(code))(g_dbl, f_dbl); in main()
|
/external/libffi/testsuite/libffi.call/ |
D | nested_struct.c | 82 struct cls_struct_combined g_dbl = {{4.0, 5.0, 6}, in main() local 126 args_dbl[2] = &g_dbl; in main() 131 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() 132 CHECK( res_dbl.d.b == (e_dbl.b + f_dbl.ff + g_dbl.d.b)); in main() 133 CHECK( res_dbl.d.c == (e_dbl.c + f_dbl.ii + g_dbl.d.c)); in main() 134 CHECK( res_dbl.e.ii == (e_dbl.c + f_dbl.ii + g_dbl.e.ii)); in main() 135 CHECK( res_dbl.e.dd == (e_dbl.a + f_dbl.dd + g_dbl.e.dd)); in main() 136 CHECK( res_dbl.e.ff == (e_dbl.b + f_dbl.ff + g_dbl.e.ff)); in main() 143 (code))(e_dbl, f_dbl, g_dbl); in main() 145 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() [all …]
|
D | nested_struct1.c | 86 struct cls_struct_combined g_dbl = {{4.0, 5.0, 6}, in main() local 132 args_dbl[2] = &g_dbl; in main() 138 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() 139 CHECK( res_dbl.d.b == (e_dbl.b + f_dbl.ff + g_dbl.d.b)); in main() 140 CHECK( res_dbl.d.c == (e_dbl.c + f_dbl.ii + g_dbl.d.c)); in main() 141 CHECK( res_dbl.e.ii == (e_dbl.c + f_dbl.ii + g_dbl.e.ii)); in main() 142 CHECK( res_dbl.e.dd == (e_dbl.a + f_dbl.dd + g_dbl.e.dd)); in main() 143 CHECK( res_dbl.e.ff == (e_dbl.b + f_dbl.ff + g_dbl.e.ff)); in main() 151 (code))(e_dbl, f_dbl, g_dbl, h_dbl); in main() 153 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() [all …]
|
D | nested_struct9.c | 71 struct C g_dbl = { 2, 9}; in main() local 113 args_dbl[2] = &g_dbl; in main() 118 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 119 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 120 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main() 124 res_dbl = ((B(*)(A, B, C))(code))(e_dbl, f_dbl, g_dbl); in main() 126 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 127 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 128 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | nested_struct6.c | 71 struct C g_dbl = { 2, 9}; in main() local 113 args_dbl[2] = &g_dbl; in main() 118 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 119 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 120 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main() 124 res_dbl = ((B(*)(A, B, C))(code))(e_dbl, f_dbl, g_dbl); in main() 126 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 127 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 128 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | nested_struct8.c | 71 struct C g_dbl = { 2LL, 9}; in main() local 113 args_dbl[2] = &g_dbl; in main() 118 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 119 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 120 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main() 124 res_dbl = ((B(*)(A, B, C))(code))(e_dbl, f_dbl, g_dbl); in main() 126 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 127 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 128 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | nested_struct10.c | 72 struct C g_dbl = { 2LL, 9}; in main() local 115 args_dbl[2] = &g_dbl; in main() 120 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + f_dbl.z + g_dbl.d)); in main() 121 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 122 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main() 126 res_dbl = ((B(*)(A, B, C))(code))(e_dbl, f_dbl, g_dbl); in main() 128 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + f_dbl.z + g_dbl.d)); in main() 129 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 130 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | cls_1_1byte.c | 53 struct cls_struct_1_1byte g_dbl = { 12 }; in main() local 72 args_dbl[0] = &g_dbl; in main() 83 res_dbl = ((cls_struct_1_1byte(*)(cls_struct_1_1byte, cls_struct_1_1byte))(code))(g_dbl, f_dbl); in main()
|