]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/compiler/tree/propagation/propagation-tests.factor
compiler.tree.propagation: type check inputs to unsafe foldable words manually, so...
[factor.git] / basis / compiler / tree / propagation / propagation-tests.factor
index 879ab82c4b18cb9d9a85aa0247deea704a8b9fe8..209efb3913ad86120a825c02e8ad373d6c6f4ed3 100644 (file)
@@ -799,3 +799,6 @@ SYMBOL: not-an-assoc
 
 [ t ] [ [ (( a b c -- c b a )) shuffle ] { shuffle } inlined? ] unit-test
 [ f ] [ [ { 1 2 3 } swap shuffle ] { shuffle } inlined? ] unit-test
+
+! Don't crash if bad literal inputs are passed to unsafe words
+[ f ] [ [ { } 1 fixnum+fast ] final-info first literal?>> ] unit-test