Skip to content

Commit a546258

Browse files
committed
cases: necessary changes from branch
1 parent 59abd11 commit a546258

6 files changed

+9
-9
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, &tmp.entry)

test/cases/compile_errors/reify_type_for_exhaustive_enum_with_undefined_tag_type.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ export fn entry() void {
1414
// backend=stage2
1515
// target=native
1616
//
17-
// :1:13: error: use of undefined value here causes undefined behavior
17+
// :1:20: error: use of undefined value here causes undefined behavior

test/cases/compile_errors/reify_type_union_payload_is_undefined.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ comptime {
99
// backend=stage2
1010
// target=native
1111
//
12-
// :1:13: error: use of undefined value here causes undefined behavior
12+
// :1:20: error: use of undefined value here causes undefined behavior

test/cases/compile_errors/reify_type_with_undefined.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ comptime {
2828
// backend=stage2
2929
// target=native
3030
//
31-
// :2:9: error: use of undefined value here causes undefined behavior
32-
// :5:9: error: use of undefined value here causes undefined behavior
33-
// :17:9: error: use of undefined value here causes undefined behavior
31+
// :2:16: error: use of undefined value here causes undefined behavior
32+
// :5:16: error: use of undefined value here causes undefined behavior
33+
// :17:16: error: use of undefined value here causes undefined behavior

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)