Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
doc
langref
test_string_literal_to_const_slice.zig
pretty
plain
permalink
blame
history
•
9 lines
•
114 B
1
fn foo(s: []const u8) void {
2
_ = s;
3
}
4
5
test "string literal to constant slice" {
6
foo("hello");
7
}
8
9
// test