* testament: error instead of silently ignore invalid targets * s/target/targets/ * fix test; refs #16344 * address comments * Update testament/specs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
9 lines
110 B
Nim
9 lines
110 B
Nim
discard """
|
|
targets: "c cpp js"
|
|
"""
|
|
|
|
var x = 10
|
|
atomicInc(x)
|
|
doAssert x == 11
|
|
atomicDec(x)
|
|
doAssert x == 10
|