diff options
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/xmlParsing001.check | 7 | ||||
-rw-r--r-- | test/files/neg/xmlParsing001.flags | 1 | ||||
-rw-r--r-- | test/files/neg/xmlParsing001.scala | 15 |
3 files changed, 23 insertions, 0 deletions
diff --git a/test/files/neg/xmlParsing001.check b/test/files/neg/xmlParsing001.check new file mode 100644 index 0000000000..0debd1c2dd --- /dev/null +++ b/test/files/neg/xmlParsing001.check @@ -0,0 +1,7 @@ +xmlParsing001.scala:13: in XML literal: expected closing tag of hello + val y = <hello></hallo>.toString(); + ^ +xmlParsing001.scala:13: in XML literal: '>' expected instead of '.' + val y = <hello></hallo>.toString(); + ^ +two errors found diff --git a/test/files/neg/xmlParsing001.flags b/test/files/neg/xmlParsing001.flags new file mode 100644 index 0000000000..49cf1af47f --- /dev/null +++ b/test/files/neg/xmlParsing001.flags @@ -0,0 +1 @@ +-Xmarkup diff --git a/test/files/neg/xmlParsing001.scala b/test/files/neg/xmlParsing001.scala new file mode 100644 index 0000000000..d732eb3869 --- /dev/null +++ b/test/files/neg/xmlParsing001.scala @@ -0,0 +1,15 @@ +//############################################################################ +// XML Parsing +//############################################################################ +// $Id$ + +import scala.testing.UnitTest._ ; + +import scala.xml._ ; + +object Test with Application { + + // error: closing tag of hello not found + val y = <hello></hallo>.toString(); + +} |