add regression test for issue 3073
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
:- use_module(library(ffi)).
|
||||||
|
|
||||||
|
|
||||||
|
test :- ffi:array_type(u8, 2, Type), ffi:allocate(rust, Type, [Type, 0], _ArrayPtr).
|
||||||
|
|
||||||
|
?- test.
|
||||||
|
error(system_error,'$ffi_allocate'/4).
|
||||||
5
tests/scryer/cli/issues/ffi_alloc_mismatched_args.md
Normal file
5
tests/scryer/cli/issues/ffi_alloc_mismatched_args.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
```trycmd
|
||||||
|
$ scryer-prolog -f --no-add-history input.pl -g test -g halt
|
||||||
|
test causes: error(system_error,$ffi_allocate/4)
|
||||||
|
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user