Add another unit test
parent
27d60007e2
commit
d7763d6b71
|
@ -280,6 +280,10 @@ FUNCTION: double ffi_test_36 ( test-struct-12 x ) ;
|
|||
|
||||
[ 1.23456 ] [ 1.23456 make-struct-12 ffi_test_36 ] unit-test
|
||||
|
||||
FUNCTION: ulonglong ffi_test_38 ( ulonglong x, ulonglong y ) ;
|
||||
|
||||
[ t ] [ 31 2^ 32 2^ ffi_test_38 63 2^ = ] unit-test
|
||||
|
||||
! Test callbacks
|
||||
|
||||
: callback-1 "void" { } "cdecl" [ ] alien-callback ;
|
||||
|
|
|
@ -260,3 +260,10 @@ int ffi_test_37(int (*f)(int, int, int))
|
|||
fflush(stdout);
|
||||
return global_var;
|
||||
}
|
||||
|
||||
unsigned long long ffi_test_38(unsigned long long x, unsigned long long y)
|
||||
{
|
||||
return x * y;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -63,3 +63,5 @@ struct test_struct_12 { int a; double x; };
|
|||
DLLEXPORT double ffi_test_36(struct test_struct_12 x);
|
||||
|
||||
DLLEXPORT int ffi_test_37(int (*f)(int, int, int));
|
||||
|
||||
DLLEXPORT unsigned long long ffi_test_38(unsigned long long x, unsigned long long y);
|
||||
|
|
Loading…
Reference in New Issue