diff options
author | ubq323 <ubq323@ubq323.website> | 2024-08-17 12:53:10 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-08-17 12:53:10 +0100 |
commit | 9b75f546b3a171a4e5afc7ed9d4969f73113c2c9 (patch) | |
tree | ce9adb55b89696f9f586143b107c1d30ed70c7c8 /com.c | |
parent | 05cfb9bf2461785ec621b490747f48b96344017f (diff) |
skip glob for tests
Diffstat (limited to 'com.c')
-rw-r--r-- | com.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -655,6 +655,8 @@ static void cpl_expr(Compiler *C, Val v, int flags) { // so (returned values) = (stack change) - (new locals) = 1 CHECK( (stack_cur_b - stack_cur_a) - (nlocals_b - nlocals_a) == 1, "stack corruption (compiler bug)"); + CHECK( (flags & F_toplevel) || (nlocals_b == nlocals_a), + "local declared not at top level (compiler bug)"); } |