From 531c66d1ec583a35d8d6bc637c94457fcd87a8e3 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Tue, 14 Aug 2018 21:28:14 +0200 Subject: Allow taking address of skForVar variables (#8632) Fixes #8630 --- tests/compiles/t8630.nim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/compiles/t8630.nim (limited to 'tests/compiles') 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"]) -- cgit 1.4.1-2-gfad0