Skip to content

Commit 08c05f6

Browse files
committed
cases: necessary changes from branch
1 parent 5136b41 commit 08c05f6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/cases/compile_errors/compile_log.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export fn baz() void {
2121
//
2222
// Compile Log Output:
2323
// @as(*const [5:0]u8, "begin")
24-
// @as(*const [1:0]u8, "a"), @as(i32, 12), @as(*const [1:0]u8, "b"), @as([]const u8, "hi")
24+
// @as(*const [1:0]u8, "a"), @as(i32, 12), @as(*const [1:0]u8, "b"), @as([]const u8, "hi"[0..2])
2525
// @as(*const [3:0]u8, "end")
2626
// @as(comptime_int, 4)
2727
// @as(*const [5:0]u8, "begin")

test/cases/compile_errors/compile_log_a_pointer_to_an_opaque_value.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ export fn entry() void {
99
// :2:5: error: found compile log statement
1010
//
1111
// Compile Log Output:
12-
// @as(*const anyopaque, (function 'entry'))
12+
// @as(*const anyopaque, &compile_log_a_pointer_to_an_opaque_value.entry)

test/cases/comptime_aggregate_print.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ pub fn main() !void {}
3131
// :20:5: error: found compile log statement
3232
//
3333
// Compile Log Output:
34-
// @as([]i32, .{ (reinterpreted data) })
35-
// @as([]i32, .{ (reinterpreted data) })
34+
// @as([]i32, &(comptime alloc).buf[0..2])
35+
// @as([]i32, &(comptime alloc).buf[0..2])

0 commit comments

Comments
 (0)