* fixes #8202

* make tests green
This commit is contained in:
Andreas Rumpf 2019-03-23 14:49:21 +01:00 • committed by GitHub
commit 0cc6e12425
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 1 deletions

18
tests/cpp/tevalorder.nim Normal file
View file

@ -0,0 +1,18 @@
discard """
output: '''0
1
2'''
target: "cpp"
"""
# bug #8202
var current: int = 0
proc gen(): string = current.inc; $(current - 1)
proc allOut(a, b, c: string) =
echo a
echo b
echo c
allOut(gen(), gen(), gen())