| 1 | const std = @import("std"); |
| 2 | |
| 3 | export fn foo() void { |
| 4 | // This should appear in the reference trace |
| 5 | // (and definitely shouldn't crash due to an unneeded source location!) |
| 6 | @panic("oh no"); |
| 7 | } |
| 8 | |
| 9 | pub fn panic(_: []const u8, _: ?*std.builtin.StackTrace, _: ?usize) noreturn { |
| 10 | @compileError("panic"); |
| 11 | } |
| 12 | |
| 13 | // error |
| 14 | // |
| 15 | // :10:5: error: panic |