aboutsummaryrefslogtreecommitdiff
path: root/test/dotc/tests.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-06-25 12:01:32 +0200
committerMartin Odersky <odersky@gmail.com>2015-06-25 12:02:32 +0200
commitd00572d159a3a15664afbf09d1ff914df4d2c512 (patch)
treeb707a4f0cc70f68819101ae7e428cc6a79d3ba8e /test/dotc/tests.scala
parent0fba8757b444d96c748df1e034d39f7626a39d1e (diff)
downloaddotty-d00572d159a3a15664afbf09d1ff914df4d2c512.tar.gz
dotty-d00572d159a3a15664afbf09d1ff914df4d2c512.tar.bz2
dotty-d00572d159a3a15664afbf09d1ff914df4d2c512.zip
Avoid crasher when first token of a program is in error
This used to give a crash in SourcePositiom, promoted by feeding its calculations with a negative offset.
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r--test/dotc/tests.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index 1aa35e3ee..520abc222 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -140,6 +140,7 @@ class tests extends CompilerTest {
@Test def neg_shadowedImplicits = compileFile(negDir, "arrayclone-new", xerrors = 2)
@Test def neg_traitParamsTyper = compileFile(negDir, "traitParamsTyper", xerrors = 5)
@Test def neg_traitParamsMixin = compileFile(negDir, "traitParamsMixin", xerrors = 2)
+ @Test def neg_firstError = compileFile(negDir, "firstError", xerrors = 3)
@Test def run_all = runFiles(runDir)