zig/test/behavior/bugs/5413.zig
Andrew Kelley 4307436b99 move behavior tests from test/stage1/ to test/
And fix test cases to make them pass. This is in preparation for
starting to pass behavior tests with self-hosted.
2021-04-29 15:54:04 -07:00

7 lines
281 B
Zig

const expect = @import("std").testing.expect;
test "Peer type resolution with string literals and unknown length u8 pointers" {
expect(@TypeOf("", "a", @as([*:0]const u8, "")) == [*:0]const u8);
expect(@TypeOf(@as([*:0]const u8, "baz"), "foo", "bar") == [*:0]const u8);
}