mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-30 04:07:55 +00:00
13
tests/ccgbugs/t16027.nim
Normal file
13
tests/ccgbugs/t16027.nim
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user