/external/libffi/testsuite/libffi.call/ |
D | nested_struct.c | 129 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 3, &cls_struct_type2, 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() 146 CHECK(ffi_prep_closure(pcl, &cif, cls_struct_combined_gn, NULL) == FFI_OK); in main() 153 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() 154 CHECK( res_dbl.d.b == (e_dbl.b + f_dbl.ff + g_dbl.d.b)); in main() [all …]
|
D | nested_struct1.c | 135 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 4, &cls_struct_type2, in main() 146 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() 147 CHECK( res_dbl.d.b == (e_dbl.b + f_dbl.ff + g_dbl.d.b)); in main() 148 CHECK( res_dbl.d.c == (e_dbl.c + f_dbl.ii + g_dbl.d.c)); in main() 149 CHECK( res_dbl.e.ii == (e_dbl.c + f_dbl.ii + g_dbl.e.ii)); in main() 150 CHECK( res_dbl.e.dd == (e_dbl.a + f_dbl.dd + g_dbl.e.dd)); in main() 151 CHECK( res_dbl.e.ff == (e_dbl.b + f_dbl.ff + g_dbl.e.ff)); in main() 153 CHECK(ffi_prep_closure(pcl, &cif, cls_struct_combined_gn, NULL) == FFI_OK); in main() 161 CHECK( res_dbl.d.a == (e_dbl.a + f_dbl.dd + g_dbl.d.a)); in main() 162 CHECK( res_dbl.d.b == (e_dbl.b + f_dbl.ff + g_dbl.d.b)); in main() [all …]
|
D | nested_struct4.c | 97 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 2, &cls_struct_type1, in main() 106 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a)); in main() 107 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y)); in main() 108 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b)); in main() 110 CHECK(ffi_prep_closure(pcl, &cif, B_gn, NULL) == FFI_OK); in main() 114 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a)); in main() 115 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y)); in main() 116 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b)); in main()
|
D | nested_struct5.c | 97 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 2, &cls_struct_type1, in main() 106 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a)); in main() 107 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y)); in main() 108 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b)); in main() 111 CHECK(ffi_prep_closure(pcl, &cif, B_gn, NULL) == FFI_OK); in main() 115 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a)); in main() 116 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y)); in main() 117 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b)); in main()
|
D | nested_struct3.c | 97 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 2, &cls_struct_type1, in main() 106 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a)); in main() 107 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y)); in main() 108 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b)); in main() 111 CHECK(ffi_prep_closure(pcl, &cif, B_gn, NULL) == FFI_OK); in main() 115 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a)); in main() 116 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y)); in main() 117 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b)); in main()
|
D | nested_struct2.c | 96 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 2, &cls_struct_type1, in main() 105 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a)); in main() 106 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y)); in main() 107 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b)); in main() 109 CHECK(ffi_prep_closure(pcl, &cif, B_gn, NULL) == FFI_OK); in main() 113 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a)); in main() 114 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y)); in main() 115 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b)); in main()
|
D | nested_struct7.c | 97 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 2, &cls_struct_type1, in main() 106 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a)); in main() 107 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y)); in main() 108 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b)); in main() 110 CHECK(ffi_prep_closure(pcl, &cif, B_gn, NULL) == FFI_OK); in main() 114 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a)); in main() 115 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y)); in main() 116 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b)); in main()
|
D | nested_struct8.c | 116 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 3, &cls_struct_type1, 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() 130 CHECK(ffi_prep_closure(pcl, &cif, B_gn, NULL) == FFI_OK); in main() 134 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 135 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 136 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | nested_struct6.c | 116 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 3, &cls_struct_type1, 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() 130 CHECK(ffi_prep_closure(pcl, &cif, B_gn, NULL) == FFI_OK); in main() 134 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 135 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 136 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | nested_struct9.c | 116 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 3, &cls_struct_type1, 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() 130 CHECK(ffi_prep_closure(pcl, &cif, B_gn, NULL) == FFI_OK); in main() 134 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + g_dbl.d)); in main() 135 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 136 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | nested_struct10.c | 118 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 3, &cls_struct_type1, 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() 132 CHECK(ffi_prep_closure(pcl, &cif, B_gn, NULL) == FFI_OK); in main() 136 CHECK( res_dbl.x.a == (e_dbl.a + f_dbl.x.a + f_dbl.z + g_dbl.d)); in main() 137 CHECK( res_dbl.x.b == (e_dbl.b + f_dbl.x.b + f_dbl.y + g_dbl.e)); in main() 138 CHECK( res_dbl.y == (e_dbl.b + f_dbl.x.b + g_dbl.e)); in main()
|
D | struct8.c | 54 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, &ts8_type, args) == FFI_OK); in main() 73 CHECK(ts8_result->f1 == 5.55f + 1); in main() 74 CHECK(ts8_result->f2 == 55.5f + 1); in main() 75 CHECK(ts8_result->f3 == -5.55f + 1); in main() 76 CHECK(ts8_result->f4 == -55.5f + 1); in main()
|
D | strlen.c | 27 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, in main() 32 CHECK(rint == 1); in main() 36 CHECK(rint == 7); in main() 40 CHECK(rint == 25); in main()
|
D | strlen_win32.c | 27 CHECK(ffi_prep_cif(&cif, FFI_STDCALL, 1, in main() 32 CHECK(rint == 1); in main() 36 CHECK(rint == 7); in main() 40 CHECK(rint == 25); in main()
|
D | float3.c | 41 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 3, in main() 52 CHECK(rd - floating_1(f, d, ld) < DBL_EPSILON); in main() 62 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 3, in main() 69 CHECK(rd - floating_2(ld, d, f) < DBL_EPSILON); in main()
|
D | struct7.c | 52 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, &ts7_type, args) == FFI_OK); in main() 68 CHECK(ts7_result->f1 == 5.55f + 1); in main() 69 CHECK(ts7_result->f2 == 55.5f + 1); in main() 70 CHECK(ts7_result->d == 6.66 + 1); in main()
|
D | return_ll.c | 26 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, in main() 32 CHECK(rlonglong == ll); in main() 38 CHECK(rlonglong == ll); in main()
|
D | float4.c | 39 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, in main() 54 CHECK(result[0].d == dblit(d)); in main() 58 CHECK(result[1].c[i] == CANARY); in main()
|
D | float1.c | 37 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, in main() 50 CHECK(result[0].d - dblit(f) < DBL_EPSILON); in main() 54 CHECK(result[1].c[i] == CANARY); in main()
|
D | struct6.c | 49 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, &ts6_type, args) == FFI_OK); in main() 59 CHECK(ts6_result->f == 5.55f + 1); in main() 60 CHECK(ts6_result->d == 6.66 + 1); in main()
|
D | struct1.c | 51 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, in main() 60 CHECK(ts1_result->ui == 556); in main() 61 CHECK(ts1_result->d == 3.14159 - 1); in main()
|
D | struct2.c | 49 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, &ts2_type, args) == FFI_OK); in main() 62 CHECK(ts2_result->d1 == 5.55 - 1); in main() 63 CHECK(ts2_result->d2 == 6.66 - 1); in main()
|
D | struct5.c | 50 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 2, &ts5_type, args) == FFI_OK); in main() 59 CHECK(ts5_result->c1 == 7); in main() 60 CHECK(ts5_result->c2 == 3); in main()
|
/external/icu4c/test/intltest/ |
D | incaltst.cpp | 19 #define CHECK(status, msg) \ macro 122 CHECK(status, "creating '" + UnicodeString(locs[j]) + "' calendar"); in TestTypes() 209 CHECK(status, "err during quasiGregorianTest()"); in quasiGregorianTest() 228 CHECK(status, UnicodeString("Creating de_CH calendar")); in TestGregorian() 280 CHECK(status, UnicodeString("Creating th_TH@calendar=buddhist calendar")); in TestBuddhist() 331 CHECK(status, UnicodeString("Creating en_US@calendar=taiwan calendar")); in TestTaiwan() 385 CHECK(status, UnicodeString("Creating ja_JP@calendar=japanese calendar")); in TestJapanese() 409 CHECK(status, "creating date format instance"); in TestBuddhistFormat() 411 CHECK(status, "creating gregorian date format instance"); in TestBuddhistFormat() 437 CHECK(status, "Error occured testing Buddhist Calendar in English "); in TestBuddhistFormat() [all …]
|
/external/libffi/testsuite/libffi.special/ |
D | unwindtest.cc | 67 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 0, in main() 69 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn, NULL) == FFI_OK); in main() 76 CHECK(exception_code == 9); in main() 104 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 16, in main() 107 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn1, in main() 117 CHECK(exception_code == 255); in main()
|