aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/bugs/5413.zig
blob: fab8e043aa1ca492f6ee72059efe711ede646741 (plain)
1
2
3
4
5
6
const expect = @import("std").testing.expect;

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