Offload int[] to byte[].
[SquirrelJME.git] / modules / cldc-compact / src / test / resources / lang / interfaces / TestInvokeInterfaceMethod.j
blob033f7661e2993cf94446dcfe98b6ff7ddd087462
1 ; -*- Mode: Jasmin; indent-tabs-mode: t; tab-width: 4 -*-
2 ; ---------------------------------------------------------------------------
3 ; SquirrelJME
4 ; Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 ; ---------------------------------------------------------------------------
6 ; SquirrelJME is under the Mozilla Public License Version 2.0.
7 ; See license.mkd for licensing and copyright information.
8 ; ---------------------------------------------------------------------------
9 ; Invocation of an interface method in the usual way
11 .class public lang/interfaces/TestInvokeInterfaceMethod
12 .super net/multiphasicapps/tac/TestInteger
14 .method public <init>()V
15 aload 0
16 invokenonvirtual net/multiphasicapps/tac/TestInteger/<init>()V
17 return
18 .end method
20 .method public test()I
21 .limit stack 2
22 ; Allocate and initialize an implementation
23 new lang/interfaces/ImplementsA
24 dup
25 invokespecial lang/interfaces/ImplementsA/<init>()V
27 invokeinterface lang/interfaces/InterfaceA/methodA()I 1
28 ireturn
29 .end method