2020-06-25 02:04:31 +08:00
|
|
|
const expect = @import("std").testing.expect;
|
|
|
|
|
|
|
|
test "Peer type resolution with string literals and unknown length u8 pointers" {
|
2021-05-05 02:23:22 +08:00
|
|
|
try expect(@TypeOf("", "a", @as([*:0]const u8, "")) == [*:0]const u8);
|
|
|
|
try expect(@TypeOf(@as([*:0]const u8, "baz"), "foo", "bar") == [*:0]const u8);
|
2020-06-25 02:04:31 +08:00
|
|
|
}
|