diff options
Diffstat (limited to 'tests/programs/o3copy.zc')
| -rw-r--r-- | tests/programs/o3copy.zc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/programs/o3copy.zc b/tests/programs/o3copy.zc index 90b9ade..29ac278 100644 --- a/tests/programs/o3copy.zc +++ b/tests/programs/o3copy.zc @@ -1,3 +1,6 @@ +namespace; +include rt; + // copies of a variable that a loop reads again: the global pass reads the variable itself o3 int g(int n, int b) { int s = 0, c = b, i = 0; @@ -9,4 +12,4 @@ o3 int h(int n, int k) { while (i < n) { t = t + a; if (t > 1000) t = t - 1000; a = k; i++; } return t + a; } -fn main() { put_n(g(1000, 7)); put_c(32); put_n(h(1000, 5)); put_c(10); return 0; } +fn main() { rt.put_n(g(1000, 7)); rt.put_c(32); rt.put_n(h(1000, 5)); rt.put_c(10); return 0; } |
