From 66847062f37a4a5088e9d3fd2228d2679e334d61 Mon Sep 17 00:00:00 2001 From: jvican Date: Mon, 27 Jun 2016 23:20:03 +0200 Subject: Implement -Yno-predef and -Yno-imports * Implement flags -Yno-predef and -Yno-imports * Add unit tests for both --- test/dotc/tests.scala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/dotc/tests.scala') 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() -- cgit v1.2.3