mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
update runtime safety test case - unsigned-signed vector cast
now it returns "integer cast truncated bits" instead of "attempt to cast negative value to unsigned integer" which I think is correct.
This commit is contained in:
parent
ceaa569bfa
commit
663f0b399c
@ -89,7 +89,7 @@ pub fn addCases(cases: *tests.CompareOutputContext) void {
|
||||
\\const std = @import("std");
|
||||
\\const V = @import("std").meta.Vector;
|
||||
\\pub fn panic(message: []const u8, stack_trace: ?*@import("builtin").StackTrace) noreturn {
|
||||
\\ if (std.mem.eql(u8, message, "attempt to cast negative value to unsigned integer")) {
|
||||
\\ if (std.mem.eql(u8, message, "integer cast truncated bits")) {
|
||||
\\ std.process.exit(126); // good
|
||||
\\ }
|
||||
\\ std.process.exit(0); // test failed
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user