fix stray warn() in runtime safety test
parent
51c6bb92b1
commit
571f3ed161
|
@ -4,7 +4,6 @@ pub fn addCases(cases: *tests.CompareOutputContext) void {
|
||||||
cases.addRuntimeSafety("shift left by huge amount",
|
cases.addRuntimeSafety("shift left by huge amount",
|
||||||
\\const std = @import("std");
|
\\const std = @import("std");
|
||||||
\\pub fn panic(message: []const u8, stack_trace: ?*@import("builtin").StackTrace) noreturn {
|
\\pub fn panic(message: []const u8, stack_trace: ?*@import("builtin").StackTrace) noreturn {
|
||||||
\\ std.debug.warn("{}\n", .{message});
|
|
||||||
\\ if (std.mem.eql(u8, message, "shift amount is greater than the type size")) {
|
\\ if (std.mem.eql(u8, message, "shift amount is greater than the type size")) {
|
||||||
\\ std.process.exit(126); // good
|
\\ std.process.exit(126); // good
|
||||||
\\ }
|
\\ }
|
||||||
|
|
Loading…
Reference in New Issue