parent
c04404635b
commit
531c66d1ec
2 changed files with 14 additions and 1 deletions
13
tests/compiles/t8630.nim
Normal file
13
tests/compiles/t8630.nim
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
discard """
|
||||
output: '''
|
||||
foo
|
||||
bar
|
||||
'''
|
||||
"""
|
||||
|
||||
proc test(strings: seq[string]) =
|
||||
for s in strings:
|
||||
var p3 = unsafeAddr(s)
|
||||
echo p3[]
|
||||
|
||||
test(@["foo", "bar"])
|
||||
Loading…
Add table
Add a link
Reference in a new issue