summaryrefslogtreecommitdiff
path: root/test/files/run/bcodeInlinerMixed/Test.scala
blob: c8c7a9fe2a811d94ee21faea8f65798c16451baf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import scala.tools.partest.{BytecodeTest, ASMConverters}
import ASMConverters._

object Test extends BytecodeTest {
  def show: Unit = {
    val gIns = instructionsFromMethod(getMethod(loadClassNode("B"), "g"))
    val hIns = instructionsFromMethod(getMethod(loadClassNode("C"), "h"))
    // val invocation = Invoke(INVOKESTATIC, A_1, bar, ()I, false)
    for (i <- List(gIns, hIns)) {
      assert(i exists {
        case Invoke(_, _, "bar", "()I", _) => true
        case _ => false
      }, i mkString "\n")
    }
  }
}