Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cases: necessary changes from branch
Browse files Browse the repository at this point in the history
mlugg committed Mar 26, 2024
1 parent 59abd11 commit a546258
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test/cases/compile_errors/compile_log.zig
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ export fn baz() void {
//
// Compile Log Output:
// @as(*const [5:0]u8, "begin")
// @as(*const [1:0]u8, "a"), @as(i32, 12), @as(*const [1:0]u8, "b"), @as([]const u8, "hi")
// @as(*const [1:0]u8, "a"), @as(i32, 12), @as(*const [1:0]u8, "b"), @as([]const u8, "hi"[0..2])
// @as(*const [3:0]u8, "end")
// @as(comptime_int, 4)
// @as(*const [5:0]u8, "begin")
Original file line number Diff line number Diff line change
@@ -9,4 +9,4 @@ export fn entry() void {
// :2:5: error: found compile log statement
//
// Compile Log Output:
// @as(*const anyopaque, (function 'entry'))
// @as(*const anyopaque, &tmp.entry)
Original file line number Diff line number Diff line change
@@ -14,4 +14,4 @@ export fn entry() void {
// backend=stage2
// target=native
//
// :1:13: error: use of undefined value here causes undefined behavior
// :1:20: error: use of undefined value here causes undefined behavior
Original file line number Diff line number Diff line change
@@ -9,4 +9,4 @@ comptime {
// backend=stage2
// target=native
//
// :1:13: error: use of undefined value here causes undefined behavior
// :1:20: error: use of undefined value here causes undefined behavior
6 changes: 3 additions & 3 deletions test/cases/compile_errors/reify_type_with_undefined.zig
Original file line number Diff line number Diff line change
@@ -28,6 +28,6 @@ comptime {
// backend=stage2
// target=native
//
// :2:9: error: use of undefined value here causes undefined behavior
// :5:9: error: use of undefined value here causes undefined behavior
// :17:9: error: use of undefined value here causes undefined behavior
// :2:16: error: use of undefined value here causes undefined behavior
// :5:16: error: use of undefined value here causes undefined behavior
// :17:16: error: use of undefined value here causes undefined behavior
4 changes: 2 additions & 2 deletions test/cases/comptime_aggregate_print.zig
Original file line number Diff line number Diff line change
@@ -31,5 +31,5 @@ pub fn main() !void {}
// :20:5: error: found compile log statement
//
// Compile Log Output:
// @as([]i32, .{ (reinterpreted data) })
// @as([]i32, .{ (reinterpreted data) })
// @as([]i32, &(comptime alloc).buf[0..2])
// @as([]i32, &(comptime alloc).buf[0..2])

0 comments on commit a546258

Please sign in to comment.