t16027.nim 245 B

1234567891011121314
  1. discard """
  2. ccodecheck: "__restrict__"
  3. action: compile
  4. joinable: false
  5. """
  6. # see bug #16027
  7. iterator myitems(s: seq[int]): int =
  8. var data {.codegenDecl: "$# __restrict__ $#".} : ptr int = nil
  9. yield 1
  10. for i in @[1].myitems:
  11. discard