Home
last modified time | relevance | path

Searched refs:CHECK (Results 1 – 25 of 143) sorted by relevance

123456

/external/libffi/testsuite/libffi.call/
Dnested_struct.c129 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 …]
Dnested_struct1.c135 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 …]
Dnested_struct4.c97 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()
Dnested_struct5.c97 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()
Dnested_struct3.c97 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()
Dnested_struct2.c96 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()
Dnested_struct7.c97 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()
Dnested_struct8.c116 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()
Dnested_struct6.c116 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()
Dnested_struct9.c116 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()
Dnested_struct10.c118 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()
Dstruct8.c54 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()
Dstrlen.c27 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()
Dstrlen_win32.c27 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()
Dfloat3.c41 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()
Dstruct7.c52 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()
Dreturn_ll.c26 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, in main()
32 CHECK(rlonglong == ll); in main()
38 CHECK(rlonglong == ll); in main()
Dfloat4.c39 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()
Dfloat1.c37 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()
Dstruct6.c49 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()
Dstruct1.c51 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()
Dstruct2.c49 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()
Dstruct5.c50 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/
Dincaltst.cpp19 #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/
Dunwindtest.cc67 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()

123456