diff options
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/xmlParsing002.check | 4 | ||||
-rw-r--r-- | test/files/neg/xmlParsing002.flags | 1 | ||||
-rw-r--r-- | test/files/neg/xmlParsing002.scala | 15 |
3 files changed, 20 insertions, 0 deletions
diff --git a/test/files/neg/xmlParsing002.check b/test/files/neg/xmlParsing002.check new file mode 100644 index 0000000000..f025013852 --- /dev/null +++ b/test/files/neg/xmlParsing002.check @@ -0,0 +1,4 @@ +xmlParsing002.scala:13: in XML literal: whitespace expected + val y = <hello foo="bar"baz="baz"></hello>.toString(); + ^ +one error found diff --git a/test/files/neg/xmlParsing002.flags b/test/files/neg/xmlParsing002.flags new file mode 100644 index 0000000000..49cf1af47f --- /dev/null +++ b/test/files/neg/xmlParsing002.flags @@ -0,0 +1 @@ +-Xmarkup diff --git a/test/files/neg/xmlParsing002.scala b/test/files/neg/xmlParsing002.scala new file mode 100644 index 0000000000..85e6b4384d --- /dev/null +++ b/test/files/neg/xmlParsing002.scala @@ -0,0 +1,15 @@ +//############################################################################ +// XML Parsing +//############################################################################ +// $Id$ + +import scala.testing.UnitTest._ ; + +import scala.xml._ ; + +object Test with Application { + + // error: no whitespace between attributes + val y = <hello foo="bar"baz="baz"></hello>.toString(); + +} |