zig/test/behavior
Andrew Kelley f4e051e35d Sema: fix comptime break semantics
Previously, breaking from an outer block at comptime would result in
incorrect control flow. Now there is a mechanism, `error.ComptimeBreak`,
similar to `error.ComptimeReturn`, to send comptime control flow further
up the stack, to its matching block.

This commit also introduces a new log scope. To use it, pass
`--debug-log sema_zir` and you will see 1 line per ZIR instruction
semantically analyzed. This is useful when you want to understand what
comptime control flow is doing while debugging the compiler.

One more `switch` test case is passing.
2022-01-17 15:23:50 -07:00
..
2021-10-26 16:43:18 -07:00
2021-10-28 17:33:05 -07:00
2022-01-10 21:01:00 +01:00
2022-01-10 21:01:00 +01:00
2021-08-30 18:50:07 -04:00
2022-01-08 14:30:11 -05:00
2022-01-08 14:30:11 -05:00
2021-11-22 03:21:31 +01:00
2021-11-27 00:27:52 -07:00
2021-11-27 00:27:52 -07:00
2022-01-07 00:06:06 -05:00
2022-01-07 00:06:06 -05:00
2021-11-27 00:27:52 -07:00
2021-11-26 23:17:01 -07:00
2022-01-07 00:06:06 -05:00
2021-07-26 20:05:48 -04:00
2022-01-08 14:01:28 +01:00
2022-01-17 15:23:50 -07:00
2022-01-03 02:09:54 +01:00
2022-01-03 02:09:54 +01:00
2022-01-03 02:09:54 +01:00
2021-11-27 00:27:52 -07:00
2021-12-28 23:22:09 -07:00
2021-12-27 15:30:31 -07:00
2022-01-07 00:06:06 -05:00