diff options
Diffstat (limited to 'tests/icon/regression/repeated_publication.zc')
| -rw-r--r-- | tests/icon/regression/repeated_publication.zc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/icon/regression/repeated_publication.zc b/tests/icon/regression/repeated_publication.zc new file mode 100644 index 0000000..b8f4268 --- /dev/null +++ b/tests/icon/regression/repeated_publication.zc @@ -0,0 +1,10 @@ +include rt; +include run; +include icon; +int target() { return 7; } +fn main() { + let first = run.tokens("7"), second = run.tokens("8"), third = run.tokens("9"); + rt.put_n(icon.find_replace(target, first, second)); rt.put_c(' '); rt.put_n(target()); rt.put_c(' '); + rt.put_n(icon.find_replace(target, second, third)); rt.put_c(' '); rt.put_n(target()); rt.put_c(10); + return 0; +} |
