Files
scryer-prolog/tests/scryer/cli/issues/ffi_alloc_mismatched_args.in/input.pl
2025-09-27 22:05:51 +02:00

7 lines
167 B
Prolog

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