This commit is contained in:
parent
267fed53ee
commit
0e7338d65c
10 changed files with 129 additions and 81 deletions
11
tests/ccgbugs/tprogmem.nim
Normal file
11
tests/ccgbugs/tprogmem.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
discard """
|
||||
output: "5"
|
||||
cmd: r"nim c --hints:on $options -d:release $file"
|
||||
ccodecheck: "'/*PROGMEM*/ myLetVariable = {'"
|
||||
target: "C"
|
||||
"""
|
||||
|
||||
var myLetVariable {.exportc, codegenDecl: "$# /*PROGMEM*/ $#".} = [1, 2, 3]
|
||||
|
||||
myLetVariable[0] = 5
|
||||
echo myLetVariable[0]
|
||||
Loading…
Add table
Add a link
Reference in a new issue