aboutsummaryrefslogtreecommitdiff
path: root/doc/langref/test_string_literal_to_const_slice.zig
blob: 99cc672722a64bd78dd8333dc5ea257f10804287 (plain)
1
2
3
4
5
6
7
8
9
fn foo(s: []const u8) void {
    _ = s;
}

test "string literal to constant slice" {
    foo("hello");
}

// test