aboutsummaryrefslogtreecommitdiff
path: root/test/test/DottyBytecodeTest.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/test/DottyBytecodeTest.scala')
-rw-r--r--test/test/DottyBytecodeTest.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/test/DottyBytecodeTest.scala b/test/test/DottyBytecodeTest.scala
index 1acb85cbf..f2218d4b6 100644
--- a/test/test/DottyBytecodeTest.scala
+++ b/test/test/DottyBytecodeTest.scala
@@ -27,6 +27,24 @@ trait DottyBytecodeTest extends DottyTest {
import AsmNode._
import ASMConverters._
+ protected object Opcode {
+ val newarray = 188
+ val anewarray = 189
+ val multianewarray = 197
+
+ val boolean = 4
+ val char = 5
+ val float = 6
+ val double = 7
+ val byte = 8
+ val short = 9
+ val int = 10
+ val long = 11
+
+ val boxedUnit = "scala/runtime/BoxedUnit"
+ val javaString = "java/lang/String"
+ }
+
private def bCodeCheckingComp(phase: TestGenBCode)(check: Directory => Unit) =
new Compiler {
override def phases = {