t22148.nim 318 B

12345678910111213141516
  1. discard """
  2. action: compile
  3. """
  4. import std/memfiles
  5. # bug #22148
  6. proc make*(input: string) =
  7. var inp = memfiles.open(input)
  8. for line in memSlices(inp):
  9. let lineF = MemFile(mem: line.data, size: line.size)
  10. for word in memSlices(lineF, ','):
  11. discard
  12. make("") # Must call to trigger