Indentations break the feed.
[SquirrelJME.git] / modules / cldc-compact / src / test / resources / lang / bytecode / TestInvokeSpecialSP.j
blob1f7656f94dbe531856999784cca97e7685f8b928
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 ; Test `invokespecial` on a public method in the same class, which
10 ; `invokevirtual` should be used instead. There is a DoJa obfuscator out there
11 ; that does this.
13 .class public lang/bytecode/TestInvokeSpecialSP
14 .super net/multiphasicapps/tac/TestInteger
16 .method public <init>()V
17 aload 0
18 invokenonvirtual net/multiphasicapps/tac/TestInteger/<init>()V
19 return
20 .end method
22 .method public test()I
23 .limit stack 2
24 aload_0
25 invokenonvirtual lang/bytecode/TestInvokeSpecialSP/method()I
27 ireturn
28 .end method
30 .method public method()I
31 .limit stack 1
32 ldc 1337
33 ireturn
34 .end method