add regression test for issue 3073

This commit is contained in:
Skgland
2025-09-27 22:05:51 +02:00
committed by Bennet Bleßmann
parent e7ac3ae0f7
commit 2f43c3ff40
2 changed files with 12 additions and 0 deletions

View File

@@ -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).

View 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)
```