diff options
Diffstat (limited to 'tests/icon/accept/literal_replace.zc')
| -rw-r--r-- | tests/icon/accept/literal_replace.zc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/icon/accept/literal_replace.zc b/tests/icon/accept/literal_replace.zc new file mode 100644 index 0000000..70f7527 --- /dev/null +++ b/tests/icon/accept/literal_replace.zc @@ -0,0 +1,9 @@ +include rt; +include run; +include icon; +int addition() { return 7 + 3; } +fn main() { + let changed = icon.find_replace(addition, ${ $int + $int }, ${ $int - $int }); + rt.put_n(changed); rt.put_c(' '); rt.put_n(addition()); rt.put_c(10); + return 0; +} |
