summary refs log blame commit diff stats
path: root/tests/ccgbugs/t16027.nim
blob: 58f15eb6e354de18482736f0e02addd9ac18a3ee (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
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