diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/io-position.check | bin | 0 -> 126 bytes | |||
-rw-r--r-- | test/files/run/io-position.scala | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/io-position.check b/test/files/run/io-position.check Binary files differnew file mode 100644 index 0000000000..09f743d750 --- /dev/null +++ b/test/files/run/io-position.check diff --git a/test/files/run/io-position.scala b/test/files/run/io-position.scala new file mode 100644 index 0000000000..7e570ea29e --- /dev/null +++ b/test/files/run/io-position.scala @@ -0,0 +1,13 @@ +object Test { + Console.setErr(Console.out) + + def main(args: Array[String]): Unit = { + try { + xml.parsing.ConstructingParser.fromSource(io.Source.fromString("<foo>"), false).document() + } catch { + case e:Exception => println(e.getMessage) + } + } + +} + |