mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 07:43:26 +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>
12 lines
267 B
Nim
12 lines
267 B
Nim
discard """
|
|
output: "5"
|
|
cmd: r"nim c --hints:on $options -d:release $file"
|
|
ccodecheck: "'/*PROGMEM*/ myLetVariable = {'"
|
|
targets: "c"
|
|
"""
|
|
|
|
var myLetVariable {.exportc, codegenDecl: "$# /*PROGMEM*/ $#".} = [1, 2, 3]
|
|
|
|
myLetVariable[0] = 5
|
|
echo myLetVariable[0]
|