diff options
Diffstat (limited to 'tests/programs/sys.zc')
| -rw-r--r-- | tests/programs/sys.zc | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/programs/sys.zc b/tests/programs/sys.zc index 52924fa..aa82097 100644 --- a/tests/programs/sys.zc +++ b/tests/programs/sys.zc @@ -1,11 +1,14 @@ -include "src/lib/std.zc"; +namespace; +include rt, std; + +include std; fn main() { let s, n; - n = Host.writefile("/tmp/zc-sys-out.txt", "zy"); - s = readfile("/tmp/zc-sys-out.txt"); - put_n(n); put_c(' '); put_s(s); put_c(' '); - if (Host.now() > 1000000000) put_s("time\n"); - else put_s("notime\n"); - free(d*s); + n = std.Host.writefile("/tmp/zc-sys-out.txt", "zy"); + s = rt.readfile("/tmp/zc-sys-out.txt"); + rt.put_n(n); rt.put_c(' '); rt.put_s(s); rt.put_c(' '); + if (std.Host.now() > 1000000000) rt.put_s("time\n"); + else rt.put_s("notime\n"); + rt.free(d*s); return 0; } |
