/tests/overflw/

ae29f2c6e6f123'/> This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log tree commit diff stats
path: root/tests/cpp/tevalorder.nim
blob: 4764f3acabfd5efc30010fe8b01c6d09bd41caae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
discard """
  output: '''0
1
2'''
targets: "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())