got rid of 'accept' dir in the tests
This commit is contained in:
parent
d0772feb08
commit
a274f3bf5b
264 changed files with 5 additions and 7 deletions
17
tests/run/tsidee3.nim
Executable file
17
tests/run/tsidee3.nim
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
discard """
|
||||
file: "tsidee3.nim"
|
||||
output: "5"
|
||||
"""
|
||||
|
||||
var
|
||||
global: int
|
||||
|
||||
proc dontcare(x: int): int {.noSideEffect.} = return x
|
||||
|
||||
proc noSideEffect(x, y: int, p: proc (a: int): int {.noSideEffect.}): int {.noSideEffect.} =
|
||||
return x + y + dontcare(x)
|
||||
|
||||
echo noSideEffect(1, 3, dontcare) #OUT 5
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue