Codegen fix for function pointers marked inline (#8866)

Fixes #5345
Fixes #5701
This commit is contained in:
LemonBoy 2018-09-04 15:28:14 +02:00 • committed by Andreas Rumpf
commit 4aba2981dd
3 changed files with 29 additions and 0 deletions

10
tests/ccgbugs/t5345.nim Normal file
View file

@ -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)