From 94ab765fe4487228f2dfb6a4ee107e8aa6cde003 Mon Sep 17 00:00:00 2001 From: araq Date: Sat, 17 Jan 2026 10:25:09 +0100 Subject: [PATCH] IC: add non-trivial testcase --- tests/ic/myimp.nim | 4 ++++ tests/ic/timp.nim | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/ic/myimp.nim create mode 100644 tests/ic/timp.nim diff --git a/tests/ic/myimp.nim b/tests/ic/myimp.nim new file mode 100644 index 0000000000..3e0bebe141 --- /dev/null +++ b/tests/ic/myimp.nim @@ -0,0 +1,4 @@ + +proc foo*(x: var int) = + inc x + diff --git a/tests/ic/timp.nim b/tests/ic/timp.nim new file mode 100644 index 0000000000..a1286b3fd8 --- /dev/null +++ b/tests/ic/timp.nim @@ -0,0 +1,7 @@ + +import myimp + +var x = 0 +foo(x) + +echo "hi ", x