diff options
Diffstat (limited to 'tests/ccgbugs/t5345.nim')
-rw-r--r-- | tests/ccgbugs/t5345.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ccgbugs/t5345.nim b/tests/ccgbugs/t5345.nim new file mode 100644 index 000000000..f9ee833c4 --- /dev/null +++ b/tests/ccgbugs/t5345.nim @@ -0,0 +1,10 @@ +discard """ + output: true +""" + +proc cmpx(d: int): bool {.inline.} = d > 0 + +proc abc[C](cx: C, d: int) = + echo cx(d) + +abc(cmpx, 10) |