mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
cases: necessary changes from branch
This commit is contained in:
parent
bfc0c35689
commit
845226a7c9
@ -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")
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user