cases: necessary changes from branch

This commit is contained in:
mlugg 2024-03-26 07:07:17 +00:00
parent bfc0c35689
commit 845226a7c9
No known key found for this signature in database
GPG Key ID: 58978E823BDE3EF9
6 changed files with 9 additions and 9 deletions

View File

@ -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")

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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])