tests: adds ?: miscompilation test case

This commit is contained in:
Joe Bryan 2023-11-28 22:27:28 -05:00
parent 9abab5d650
commit f71bbfe4f1

13
tests/bug/wtcl-crash.hoon Normal file
View File

@ -0,0 +1,13 @@
:: miscompilation: crashing conditional expression compiled out
::
/+ *test
|%
::
++ test-wtcl-cond-crash
%- expect-fail
|. %. %foo
|= sam=$@(?(%foo %bar) [%baz @])
^- [%baz @]
?> ?=(%baz -.sam)
sam
--