From 6d98fcf8efba81f77bb3875382ddad22f7a4a15b Mon Sep 17 00:00:00 2001 From: Lex Spoon Date: Fri, 13 Jul 2007 21:23:20 +0000 Subject: --- test/files/neg/xmltruncated1.check | 4 ++++ test/files/neg/xmltruncated1.scala | 2 ++ test/files/neg/xmltruncated2.check | 4 ++++ test/files/neg/xmltruncated2.scala | 2 ++ test/files/neg/xmltruncated3.check | 4 ++++ test/files/neg/xmltruncated3.scala | 2 ++ test/files/neg/xmltruncated4.check | 4 ++++ test/files/neg/xmltruncated4.scala | 2 ++ test/files/neg/xmltruncated5.check | 4 ++++ test/files/neg/xmltruncated5.scala | 3 +++ test/files/neg/xmltruncated6.check | 7 +++++++ test/files/neg/xmltruncated6.scala | 2 ++ 12 files changed, 40 insertions(+) create mode 100644 test/files/neg/xmltruncated1.check create mode 100644 test/files/neg/xmltruncated1.scala create mode 100644 test/files/neg/xmltruncated2.check create mode 100644 test/files/neg/xmltruncated2.scala create mode 100644 test/files/neg/xmltruncated3.check create mode 100644 test/files/neg/xmltruncated3.scala create mode 100644 test/files/neg/xmltruncated4.check create mode 100644 test/files/neg/xmltruncated4.scala create mode 100644 test/files/neg/xmltruncated5.check create mode 100644 test/files/neg/xmltruncated5.scala create mode 100644 test/files/neg/xmltruncated6.check create mode 100644 test/files/neg/xmltruncated6.scala (limited to 'test/files') diff --git a/test/files/neg/xmltruncated1.check b/test/files/neg/xmltruncated1.check new file mode 100644 index 0000000000..7b2a7aed6c --- /dev/null +++ b/test/files/neg/xmltruncated1.check @@ -0,0 +1,4 @@ +xmltruncated1.scala:3: error: Input ended while parsing XML + +^ +one error found diff --git a/test/files/neg/xmltruncated1.scala b/test/files/neg/xmltruncated1.scala new file mode 100644 index 0000000000..f64573cc7f --- /dev/null +++ b/test/files/neg/xmltruncated1.scala @@ -0,0 +1,2 @@ +object Main { + val stuff = diff --git a/test/files/neg/xmltruncated2.check b/test/files/neg/xmltruncated2.check new file mode 100644 index 0000000000..fdb7fdf2e3 --- /dev/null +++ b/test/files/neg/xmltruncated2.check @@ -0,0 +1,4 @@ +xmltruncated2.scala:3: error: Input ended while parsing XML + +^ +one error found diff --git a/test/files/neg/xmltruncated2.scala b/test/files/neg/xmltruncated2.scala new file mode 100644 index 0000000000..de9c7bb4a6 --- /dev/null +++ b/test/files/neg/xmltruncated2.scala @@ -0,0 +1,2 @@ +object Main { + val stuff = match { + case diff --git a/test/files/neg/xmltruncated6.check b/test/files/neg/xmltruncated6.check new file mode 100644 index 0000000000..7e1346ae4d --- /dev/null +++ b/test/files/neg/xmltruncated6.check @@ -0,0 +1,7 @@ +xmltruncated6.scala:2: error: ';' expected but eof found. + val stuff = { "no closing brace" + ^ +xmltruncated6.scala:3: error: Input ended while parsing XML + +^ +two errors found diff --git a/test/files/neg/xmltruncated6.scala b/test/files/neg/xmltruncated6.scala new file mode 100644 index 0000000000..c53faedb22 --- /dev/null +++ b/test/files/neg/xmltruncated6.scala @@ -0,0 +1,2 @@ +object Main { + val stuff = { "no closing brace" -- cgit v1.2.3