mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
10 lines
114 B
Zig
10 lines
114 B
Zig
fn foo(s: []const u8) void {
|
|
_ = s;
|
|
}
|
|
|
|
test "string literal to constant slice" {
|
|
foo("hello");
|
|
}
|
|
|
|
// test
|