aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/names.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/programs/names.zc')
-rw-r--r--tests/programs/names.zc9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/programs/names.zc b/tests/programs/names.zc
index 6ccb2eb..e5b9d4b 100644
--- a/tests/programs/names.zc
+++ b/tests/programs/names.zc
@@ -1,9 +1,12 @@
+namespace;
+include rt;
+
fn f(d) { let u = 3, m = 4; if (d > 0) return u + m + d; return 0; }
fn dmul(d) { return d * 4; }
fn main() {
let u = 1;
- put_n(f(5)); put_c(' ');
- put_n(u); put_c(' ');
- put_n(dmul(2)); put_c(10);
+ rt.put_n(f(5)); rt.put_c(' ');
+ rt.put_n(u); rt.put_c(' ');
+ rt.put_n(dmul(2)); rt.put_c(10);
return 0;
}