IC: add non-trivial testcase

This commit is contained in:
araq
2026-01-17 10:25:09 +01:00
parent 9a07e18095
commit 94ab765fe4
2 changed files with 11 additions and 0 deletions

4
tests/ic/myimp.nim Normal file
View File

@@ -0,0 +1,4 @@
proc foo*(x: var int) =
inc x

7
tests/ic/timp.nim Normal file
View File

@@ -0,0 +1,7 @@
import myimp
var x = 0
foo(x)
echo "hi ", x