/external/libffi/testsuite/libffi.call/ |
D | cls_ulonglong.c | 26 ffi_closure *pcl; in main() local 31 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 33 pcl = &cl; in main() 42 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_ulonglong_fn, NULL) == FFI_OK); in main() 43 res = (*((cls_ret_ulonglong)pcl))(214LL); in main() 48 res = (*((cls_ret_ulonglong)pcl))(9223372035854775808LL); in main()
|
D | cls_float.c | 27 ffi_closure *pcl; in main() local 32 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 34 pcl = &cl; in main() 45 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_float_fn, NULL) == FFI_OK); in main() 46 res = ((((cls_ret_float)pcl)(-2122.12))); in main()
|
D | cls_double.c | 26 ffi_closure *pcl; in main() local 31 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 33 pcl = &cl; in main() 43 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_double_fn, NULL) == FFI_OK); in main() 45 res = (*((cls_ret_double)pcl))(21474.789); in main()
|
D | cls_sint.c | 25 ffi_closure *pcl; in main() local 30 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 32 pcl = &cl; in main() 42 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_sint_fn, NULL) == FFI_OK); in main() 44 res = (*((cls_ret_sint)pcl))(65534); in main()
|
D | cls_ushort.c | 26 ffi_closure *pcl; in main() local 31 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 33 pcl = &cl; in main() 43 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_ushort_fn, NULL) == FFI_OK); in main() 45 res = (*((cls_ret_ushort)pcl))(65535); in main()
|
D | cls_uchar.c | 25 ffi_closure *pcl; in main() local 30 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 32 pcl = &cl; in main() 42 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_uchar_fn, NULL) == FFI_OK); in main() 44 res = (*((cls_ret_uchar)pcl))(127); in main()
|
D | cls_sshort.c | 25 ffi_closure *pcl; in main() local 30 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 32 pcl = &cl; in main() 42 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_sshort_fn, NULL) == FFI_OK); in main() 44 res = (*((cls_ret_sshort)pcl))(255); in main()
|
D | cls_schar.c | 27 ffi_closure *pcl; in main() local 32 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 34 pcl = &cl; in main() 44 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_schar_fn, NULL) == FFI_OK); in main() 46 res = (*((cls_ret_schar)pcl))(127); in main()
|
D | cls_uint.c | 26 ffi_closure *pcl; in main() local 31 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 33 pcl = &cl; in main() 43 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_uint_fn, NULL) == FFI_OK); in main() 45 res = (*((cls_ret_uint)pcl))(2147483647); in main()
|
D | closure_stdcall.c | 34 ffi_closure *pcl; in main() local 42 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 44 pcl = &cl; in main() 57 CHECK(ffi_prep_closure(pcl, &cif, closure_test_stdcall, in main() 61 res = (*(closure_test_type0)pcl)(0, 1, 2, 3); in main()
|
D | closure_fn4.c | 66 ffi_closure *pcl; in main() local 71 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 73 pcl = &cl; in main() 86 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn0, in main() 89 res = (*((closure_test_type0)pcl)) in main()
|
D | cls_multi_sshort.c | 42 ffi_closure *pcl; in main() local 49 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 51 pcl = &cl; in main() 74 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); in main() 76 res_closure = (*((test_type)pcl))(2, 32765); in main()
|
D | cls_multi_ushort.c | 42 ffi_closure *pcl; in main() local 49 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 51 pcl = &cl; in main() 74 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); in main() 76 res_closure = (*((test_type)pcl))(2, 32765); in main()
|
D | cls_multi_schar.c | 42 ffi_closure *pcl; in main() local 49 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 51 pcl = &cl; in main() 74 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); in main() 76 res_closure = (*((test_type)pcl))(2, 125); in main()
|
D | closure_fn5.c | 65 ffi_closure *pcl; in main() local 69 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 71 pcl = &cl; in main() 88 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn5, in main() 91 res = (*((closure_test_type0)pcl)) in main()
|
D | closure_fn1.c | 47 ffi_closure *pcl; in main() local 52 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 54 pcl = &cl; in main() 79 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn1, in main() 82 res = (*((closure_test_type1)pcl)) in main()
|
D | closure_fn3.c | 48 ffi_closure *pcl; in main() local 53 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 55 pcl = &cl; in main() 80 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn3, in main() 83 res = (*((closure_test_type3)pcl)) in main()
|
D | closure_fn2.c | 47 ffi_closure *pcl; in main() local 52 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 54 pcl = &cl; in main() 79 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn2, in main() 82 res = (*((closure_test_type2)pcl)) in main()
|
D | closure_fn6.c | 56 ffi_closure *pcl; in main() local 61 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 63 pcl = &cl; in main() 88 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn0, in main() 91 res = (*((closure_test_type0)pcl)) in main()
|
D | closure_fn0.c | 55 ffi_closure *pcl; in main() local 60 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 62 pcl = &cl; in main() 87 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn0, in main() 90 res = (*((closure_test_type0)pcl)) in main()
|
D | cls_multi_sshortchar.c | 47 ffi_closure *pcl; in main() local 55 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 57 pcl = &cl; in main() 86 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); in main() 88 res_closure = (*((test_type)pcl))(1, 32765, 127, -128); in main()
|
D | cls_multi_ushortchar.c | 47 ffi_closure *pcl; in main() local 55 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 57 pcl = &cl; in main() 86 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); in main() 88 res_closure = (*((test_type)pcl))(1, 2, 127, 128); in main()
|
D | cls_1_1byte.c | 49 ffi_closure *pcl; in main() local 56 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 58 pcl = &cl; in main() 89 CHECK(ffi_prep_closure(pcl, &cif, cls_struct_1_1byte_gn, NULL) == FFI_OK); in main() 91 res_dbl = ((cls_struct_1_1byte(*)(cls_struct_1_1byte, cls_struct_1_1byte))(pcl))(g_dbl, f_dbl); in main()
|
D | cls_multi_uchar.c | 53 ffi_closure *pcl; in main() local 60 pcl = allocate_mmap (sizeof(ffi_closure)); in main() 62 pcl = &cl; in main() 91 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); in main() 93 res_closure = (*((test_type)pcl))(1, 2, 127, 125); in main()
|
/external/libffi/testsuite/libffi.special/ |
D | unwindtest.cc | 56 ffi_closure *pcl; in main() local 59 pcl = (ffi_closure *) allocate_mmap (sizeof(ffi_closure)); in main() 61 pcl = &cl; in main() 69 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn, NULL) == FFI_OK); in main() 73 (*((closure_test_type)(pcl)))(); in main() 107 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn1, in main() 111 (*((closure_test_type1)pcl)) in main()
|