mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-17 20:33:06 +00:00
IC: add non-trivial testcase
This commit is contained in:
4
tests/ic/myimp.nim
Normal file
4
tests/ic/myimp.nim
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
proc foo*(x: var int) =
|
||||
inc x
|
||||
|
||||
7
tests/ic/timp.nim
Normal file
7
tests/ic/timp.nim
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
import myimp
|
||||
|
||||
var x = 0
|
||||
foo(x)
|
||||
|
||||
echo "hi ", x
|
||||
Reference in New Issue
Block a user