1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-17 00:37:39 +00:00

GCC seemed to not fill array of computed gotos.

This is expected as per the C standard, but segfaulted
unless all 255 labels were added.
This commit is contained in:
Calvin Rose
2019-09-22 17:50:31 -05:00
parent a8afc5b81f
commit 8cda06b995
2 changed files with 188 additions and 3 deletions

View File

@@ -156,11 +156,11 @@
(assert (= (|(+ $0 $1 $3 $2 $6) 0 1 2 3 4 5 6) 12) "function shorthand 9")
# Simple function break
(debug/fbreak map)
(debug/fbreak map 1)
(def f (fiber/new (fn [] (map inc [1 2 3])) :a))
(resume f)
(assert (= :debug (fiber/status f)) "debug/fbreak")
(debug/unfbreak map)
(debug/unfbreak map 1)
(map inc [1 2 3])
(end-suite)