diff options
Diffstat (limited to 'test/asset/run/callstack.et')
-rw-r--r-- | test/asset/run/callstack.et | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/asset/run/callstack.et b/test/asset/run/callstack.et new file mode 100644 index 0000000..9e8123b --- /dev/null +++ b/test/asset/run/callstack.et @@ -0,0 +1,23 @@ +test AG: + let x = 1 + guard (x == 0) + +test AE: + spawn as p + let x = 2 + expect /$x/ from p timeout 0.0 + +def fg: + let x = 1 + guard (x == 0) + +test BG: + fg + +def gg (x): + let y = 2 + guard (x == y) + +test CG: + let z = 3 + gg (z) |