mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
* 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>
10 lines
110 B
Nim
10 lines
110 B
Nim
discard """
|
|
targets: "c cpp js"
|
|
"""
|
|
|
|
var x = 10
|
|
atomicInc(x)
|
|
doAssert x == 11
|
|
atomicDec(x)
|
|
doAssert x == 10
|