diff options
Diffstat (limited to 'tests/programs/typedmethods.zc')
| -rw-r--r-- | tests/programs/typedmethods.zc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/programs/typedmethods.zc b/tests/programs/typedmethods.zc index facd9f1..570ae17 100644 --- a/tests/programs/typedmethods.zc +++ b/tests/programs/typedmethods.zc @@ -1,3 +1,6 @@ +namespace; +include rt; + // struct methods declare a return type and typed parameters, like functions do struct Str { int len; @@ -8,9 +11,9 @@ struct Str { int main() { Str a; a.len = 9; - put_n(Str.size(7)); put_c(32); - put_n(Str.none()); put_c(32); - put_n(a.plus(4)); - put_c(10); + rt.put_n(Str.size(7)); rt.put_c(32); + rt.put_n(Str.none()); rt.put_c(32); + rt.put_n(a.plus(4)); + rt.put_c(10); return 0; } |
