cli: add supplied-buffer decimal integer formatting to std
This commit is contained in:
30 files changed
+3609
-11
No files matched your search
@@ -0,0 +1,6 @@
|
||||
// expect: reject E2101 E2101
|
||||
// phase: 6
|
||||
// spec: docs/spec/16-standard-library.md §2.8
|
||||
module test.fmt
|
||||
import std.fmt;
|
||||
fn main() -> u8 effects [] { var buf: [u8; 4] = zero; ref held = buf; let result = std.fmt.write_i64(mut buf[0..0], -1); assert(held[0] == 0); return 0; }
|
||||
Reference in new issue
Block a user