diff options
Diffstat (limited to 'tests/programs/backtick.zc')
| -rw-r--r-- | tests/programs/backtick.zc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/programs/backtick.zc b/tests/programs/backtick.zc index 3610f70..548eac8 100644 --- a/tests/programs/backtick.zc +++ b/tests/programs/backtick.zc @@ -1,9 +1,12 @@ +namespace; +include rt; + // a backtick ends the source only where the lexer would read it as a token. // this one, in a line comment: ` does not end anything. /* nor does this, in a block comment ` with a star / and a slash */ fn main() { let s = "a`b", t = "q\"`", c = '`', d = '\''; - put_n(len_w(s)); put_c(' '); put_n(len_w(t)); put_c(' '); put_n(c); put_c(' '); put_n(d); put_c(' '); - while (!eof()) put_c(get_c()); + rt.put_n(rt.len_w(s)); rt.put_c(' '); rt.put_n(rt.len_w(t)); rt.put_c(' '); rt.put_n(c); rt.put_c(' '); rt.put_n(d); rt.put_c(' '); + while (!rt.eof()) rt.put_c(rt.get_c()); return 0; } |
