X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.pure.lisp;h=5e9e754c926afd516b8642003de134da593e291b;hb=5a9a81ca693a7b82d810cbe725818cd96244099e;hp=ecea1bdf382e7277ababfcd3896ee6a5a8503cb0;hpb=3ff82c68661051e4c1ac9b80159e5aadcdeb17e7;p=sbcl.git diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp index ecea1bd..5e9e754 100644 --- a/tests/compiler.pure.lisp +++ b/tests/compiler.pure.lisp @@ -3347,3 +3347,16 @@ (test 'simple-string "%CONCATENATE-TO-STRING") (test 'base-string "%CONCATENATE-TO-BASE-STRING") (test 'simple-base-string "%CONCATENATE-TO-BASE-STRING"))) + +(with-test (:name :satisfies-no-local-fun) + (let ((fun (compile nil `(lambda (arg) + (labels ((local-not-global-bug (x) + t) + (bar (x) + (typep x '(satisfies local-not-global-bug)))) + (bar arg)))))) + (assert (eq 'local-not-global-bug + (handler-case + (funcall fun 42) + (undefined-function (c) + (cell-error-name c)))))))