start of tests refactoring; sqlite3 new wrapper fixes
This commit is contained in:
parent
6bc16904ed
commit
d913fdb280
173 changed files with 206 additions and 238 deletions
11
tests/accept/run/tsidee3.nim
Normal file
11
tests/accept/run/tsidee3.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
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