diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-04-10 17:38:28 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-04-10 17:38:28 +0200 |
commit | 9918c1206e291b0bbd324463b3d1fa347a7222de (patch) | |
tree | bdf6c8ae05f3d9ec5c4720414bae3ccb1ce78e8c /tests | |
parent | 7adeb5c56e18858ab92337c59b393f0704538e22 (diff) | |
download | quickjs-9918c1206e291b0bbd324463b3d1fa347a7222de.tar.gz quickjs-9918c1206e291b0bbd324463b3d1fa347a7222de.zip |
workaround for #282
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_loop.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_loop.js b/tests/test_loop.js index 50e2122..8f1934d 100644 --- a/tests/test_loop.js +++ b/tests/test_loop.js @@ -371,6 +371,16 @@ function test_try_catch8() assert(s === "xafyaf"); } +function test_cyclic_labels() +{ + /* just check that it compiles without a crash */ + for (;;) { + l: break l; + l: break l; + l: break l; + } +} + test_while(); test_while_break(); test_do_while(); |