Added some tests for line number debug info

git-svn-id: https://smali.googlecode.com/svn/trunk@232 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com 2009-07-03 02:14:25 +00:00
parent aaf4c4062a
commit f1e5086830
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,44 @@
.class public LLineTest;
.super Ljava/lang/Object;
.source "LineTest.smali"
#this class tests line debug info
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public largerThanSignedShort()V
.registers 1
.annotation runtime Lorg/junit/Test;
.end annotation
#a line number that just barely doesn't fit in a signed short
.line 0x8000
return-void
.end method
.method public largerThanUnsignedShort()V
.registers 1
.annotation runtime Lorg/junit/Test;
.end annotation
#a line number that is way bigger than a signed short
.line 0x10000
return-void
.end method
.method public largerThanSignedInt()V
.registers 1
.annotation runtime Lorg/junit/Test;
.end annotation
#a line number that just barely doesn't fit in a signed int
.line 0x80000000
return-void
.end method

View File

@ -24,6 +24,7 @@
LFieldTest;,
LSpecialInstructionPaddingTest;,
LStaticFieldInitializerTest;,
LLineTest;,
LFormat10x;,
LFormat10t;,
LFormat11n;,