summaryrefslogtreecommitdiff
path: root/test/files/run/xml-loop-bug.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/xml-loop-bug.scala')
-rw-r--r--test/files/run/xml-loop-bug.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/run/xml-loop-bug.scala b/test/files/run/xml-loop-bug.scala
new file mode 100644
index 0000000000..acb3c5c6da
--- /dev/null
+++ b/test/files/run/xml-loop-bug.scala
@@ -0,0 +1,5 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ scala.xml.parsing.ConstructingParser.fromSource(scala.io.Source.fromString("<!DOCTYPE xmeml SYSTEM> <xmeml> <sequence> </sequence> </xmeml> "), true).document.docElem
+ }
+}