Skip to content

Commit 989c271

Browse files
committed
Add test for backend.
1 parent dc08ddc commit 989c271

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/dotc/tests.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class tests extends CompilerTest {
6161
@Test def pos_overloadedAccess = compileFile(posDir, "overloadedAccess")
6262
@Test def pos_approximateUnion = compileFile(posDir, "approximateUnion")
6363
@Test def pos_tailcall = compileDir(posDir + "tailcall/")
64-
@Test def pos_nullarify = compileFile(posDir, "nullarify", "-Ycheck:nullarify" :: doErase)
64+
@Test def pos_nullarify = compileFile(posDir, "nullarify", "-Ycheck:nullarify" :: Nil)
6565
@Test def pos_subtyping = compileFile(posDir, "subtyping")
6666
@Test def pos_t2613 = compileFile(posSpecialDir, "t2613")(allowDeepSubtypes)
6767

@@ -125,6 +125,8 @@ class tests extends CompilerTest {
125125
@Test def dotc_typer = compileDir(dotcDir + "tools/dotc/typer", twice)
126126
@Test def dotc_util = compileDir(dotcDir + "tools/dotc/util", twice)
127127
@Test def tools_io = compileDir(dotcDir + "tools/io", twice)
128+
129+
@Test def helloWorld = compileFile(posDir, "HelloWorld", doEmitBytecode)
128130
//@Test def tools = compileDir(dotcDir + "tools", "-deep" :: Nil)(allowDeepSubtypes)
129131

130132
@Test def testNonCyclic = compileArgs(Array(

tests/pos/HelloWorld.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object HelloWorld {
2+
def main(args: Array[String]): Unit = println("hello world")
3+
}

0 commit comments

Comments
 (0)