@@ -91,6 +91,7 @@ class CompilationTests extends ParallelTesting {
9191 compileFilesInDir(" ../tests/new" , defaultOptions) +
9292 compileFilesInDir(" ../tests/pos-scala2" , scala2Mode) +
9393 compileFilesInDir(" ../tests/pos" , defaultOptions) +
94+ compileFilesInDir(" ../tests/pos" , defaultOptimised) +
9495 compileFilesInDir(" ../tests/pos-deep-subtype" , allowDeepSubtypes) +
9596 compileFile(
9697 // succeeds despite -Xfatal-warnings because of -nowarn
@@ -159,6 +160,8 @@ class CompilationTests extends ParallelTesting {
159160
160161 @ Test def compileNeg : Unit = {
161162 compileShallowFilesInDir(" ../tests/neg" , defaultOptions) +
163+ compileShallowFilesInDir(" ../tests/neg/no-optimise" , defaultOptions) +
164+ compileShallowFilesInDir(" ../tests/neg" , defaultOptimised) +
162165 compileFile(" ../tests/neg/customArgs/typers.scala" , allowDoubleBindings) +
163166 compileFile(" ../tests/neg/customArgs/overrideClass.scala" , scala2Mode) +
164167 compileFile(" ../tests/neg/customArgs/autoTuplingTest.scala" , defaultOptions.and(" -language:noAutoTupling" )) +
@@ -186,6 +189,7 @@ class CompilationTests extends ParallelTesting {
186189
187190 @ Test def runAll : Unit = {
188191 compileFilesInDir(" ../tests/run" , defaultOptions) +
192+ compileFilesInDir(" ../tests/run" , defaultOptimised) +
189193 compileFile(" ../tests/run/i3018.scala" , defaultOptimised) +
190194 compileFile(" ../tests/run/blame_eye_triple_eee-double.scala" , defaultOptimised) +
191195 compileFile(" ../tests/run/blame_eye_triple_eee-float.scala" , defaultOptimised) +
0 commit comments