mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
10 lines
175 B
Plaintext
10 lines
175 B
Plaintext
|
|
// Check that 0 <= buf is ok.
|
|
<*
|
|
@ensure return <= buf.len
|
|
*>
|
|
fn usz foo(char[] buf) {
|
|
if (buf.len == 0) return 0;
|
|
// ... return some index into buf
|
|
return buf.len;
|
|
} |