summary refs log tree commit diff stats
path: root/tests/stdlib/tstreams.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tstreams.nim')
-rw-r--r--tests/stdlib/tstreams.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/stdlib/tstreams.nim b/tests/stdlib/tstreams.nim
index d199037e3..6fda30f51 100644
--- a/tests/stdlib/tstreams.nim
+++ b/tests/stdlib/tstreams.nim
@@ -76,3 +76,7 @@ block:
   doAssert(ss.getPosition == 5) # haven't moved
   ss.setPosition(0) # Ensure we dont error with writing over literals on arc/orc #19707
   ss.write("hello")
+
+static: # Ensure streams it doesnt break with nimscript on arc/orc #19716
+  let s = newStringStream("a")
+  discard s.data