Idris2/tests/chez/chez036/Crash3.idr
Steve Dunham ecf4765c4b
[ fix ] Fix issue with eager evaluation of crashing functions (fixes #3003) (#3004)
* [ fix ] Fix issue with eager evaluation of crashing functions

* Mark functions that call unsafe builtins as non-constant

* Better detection of crash primop when deciding if functions can be constant
2023-06-28 08:32:48 +01:00

10 lines
148 B
Idris

import System
partial
unreachable : a
unreachable = idris_crash "unreachable"
main : IO Int
main = do
exitSuccess
assert_total unreachable