zig/test/behavior
zooster 3d64ed0353
make @trap return unreachable/noreturn (#15749)
`@trap` is a special function that we know never returns so it should
behave just like `@panic` and `@compileError` do currently and cause the
"unreachable code" + "control flow is diverted here" compile error.
Currently, `@trap(); @trap();` does not cause this error. Now it does.
2023-05-18 17:00:35 -04:00
..
2023-05-11 20:31:52 +02:00
2023-05-11 20:31:52 +02:00
2023-05-11 20:31:52 +02:00
2023-05-11 20:31:52 +02:00
2023-05-11 20:31:52 +02:00
2023-05-11 20:31:52 +02:00
2022-01-07 00:06:06 -05:00
2023-04-02 04:49:53 -04:00
2023-05-15 03:07:51 -04:00
2023-05-15 03:07:51 -04:00
2023-05-11 20:31:52 +02:00
2023-05-11 20:31:52 +02:00
2023-05-15 03:07:51 -04:00
2023-05-11 20:31:52 +02:00
2023-05-11 20:31:52 +02:00
2023-05-15 03:07:51 -04:00
2023-05-11 20:31:52 +02:00
2023-05-11 20:31:52 +02:00