summary refs log tree commit diff stats
path: root/tests/accept/run/tsidee2.nim
blob: e73c896080269a18c1f87d1d6a625280343d793b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
discard """
  file: "tsidee2.nim"
  output: "5"
"""

var
  global: int

proc dontcare(x: int): int = return x

proc SideEffectLyer(x, y: int): int {.noSideEffect.} = 
  return x + y + dontcare(x)
  
echo SideEffectLyer(1, 3) #OUT 5