aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorjvican <jorgevc@fastmail.es>2016-06-27 23:20:03 +0200
committerjvican <jorgevc@fastmail.es>2016-06-29 00:08:56 +0200
commit66847062f37a4a5088e9d3fd2228d2679e334d61 (patch)
tree34ae75ac7cece5f844cb98d79e27973e790f17d5 /test
parentc7d1826cf0456e5efad5cb66ae06e7273c8a8e2a (diff)
downloaddotty-66847062f37a4a5088e9d3fd2228d2679e334d61.tar.gz
dotty-66847062f37a4a5088e9d3fd2228d2679e334d61.tar.bz2
dotty-66847062f37a4a5088e9d3fd2228d2679e334d61.zip
Implement -Yno-predef and -Yno-imports
* Implement flags -Yno-predef and -Yno-imports * Add unit tests for both
Diffstat (limited to 'test')
-rw-r--r--test/dotc/tests.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index bac443735..04d88a9f6 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -136,6 +136,10 @@ class tests extends CompilerTest {
@Test def neg_tailcall2 = compileFile(negTailcallDir, "tailrec-2")
@Test def neg_tailcall3 = compileFile(negTailcallDir, "tailrec-3")
+ @Test def neg_nopredef = compileFile(negCustomArgs, "nopredef", List("-Yno-predef"))
+ @Test def neg_noimports = compileFile(negCustomArgs, "noimports", List("-Yno-imports"))
+ @Test def neg_noimpots2 = compileFile(negCustomArgs, "noimports2", List("-Yno-imports"))
+
@Test def run_all = runFiles(runDir)
val stdlibFiles = Source.fromFile("./test/dotc/scala-collections.whitelist", "UTF8").getLines()