summary refs log blame commit diff stats
path: root/tests/cpp/tevalorder.nim
blob: f130cef6c7d89a4d009ebcf4a547ffe7205fb3b0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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())