mirror of
https://github.com/urbit/shrub.git
synced 2024-09-11 12:25:43 +03:00
tests: adds ?: miscompilation test case
This commit is contained in:
parent
9abab5d650
commit
f71bbfe4f1
13
tests/bug/wtcl-crash.hoon
Normal file
13
tests/bug/wtcl-crash.hoon
Normal 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
|
||||||
|
--
|
Loading…
Reference in New Issue
Block a user