diff --git a/basis/compiler/tests/alien.factor b/basis/compiler/tests/alien.factor index e21e13dc13..9d3a66df5b 100755 --- a/basis/compiler/tests/alien.factor +++ b/basis/compiler/tests/alien.factor @@ -588,3 +588,8 @@ FUNCTION: short ffi_test_48 ( bool-field-test x ) ; 123 >>parents ffi_test_48 ] unit-test + +! Regression: calling an undefined function would raise a protection fault +FUNCTION: void this_does_not_exist ( ) ; + +[ this_does_not_exist ] [ { "kernel-error" 10 f f } = ] must-fail-with