summary refs log tree commit diff stats
path: root/tests/stdlib/tstreams3.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tstreams3.nim')
-rw-r--r--tests/stdlib/tstreams3.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/stdlib/tstreams3.nim b/tests/stdlib/tstreams3.nim
new file mode 100644
index 000000000..b2c9170e3
--- /dev/null
+++ b/tests/stdlib/tstreams3.nim
@@ -0,0 +1,10 @@
+discard """
+  file: "tstreams3.nim"
+  output: "threw exception"
+"""
+import streams
+
+try:
+  var fs = openFileStream("shouldneverexist.txt")
+except IoError:
+  echo "threw exception"