Files
Nim/tests/ccgbugs/t16027.nim
flywind 581bcfe290 fix #6497 (#16027)
* fix #6497

* add testcase for #16027
2020-11-18 07:56:31 +00:00

14 lines
245 B
Nim

discard """
ccodecheck: "__restrict__"
action: compile
joinable: false
"""
# see bug #16027
iterator myitems(s: seq[int]): int =
var data {.codegenDecl: "$# __restrict__ $#".} : ptr int = nil
yield 1
for i in @[1].myitems:
discard