zig/test/cases/compile_errors/@trap_comptime_call.zig
Andrew Kelley 3d23ba9c35 Revert "Sema: forbid @breakpoint from being called at comptime"
This reverts commit f88b523065fbb8afbd723fd6e803ace0334b713c.

Let's please go through the language proposal process for this change. I
don't see any justification for this breaking change even in the commit
message.
2023-12-11 12:24:15 -07:00

10 lines
144 B
Zig

export fn entry() void {
comptime @trap();
}
// error
// backend=stage2
// target=native
//
// :2:14: error: encountered @trap at comptime