diff options
Diffstat (limited to 'tests/compiles/t8630.nim')
-rw-r--r-- | tests/compiles/t8630.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/compiles/t8630.nim b/tests/compiles/t8630.nim new file mode 100644 index 000000000..aa2be11cd --- /dev/null +++ b/tests/compiles/t8630.nim @@ -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"]) |