diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/800-smali/expected.txt | 2 | ||||
-rw-r--r-- | test/800-smali/smali/b_23201502.smali | 23 | ||||
-rw-r--r-- | test/800-smali/src/Main.java | 4 |
3 files changed, 29 insertions, 0 deletions
diff --git a/test/800-smali/expected.txt b/test/800-smali/expected.txt index ebcaad1..49f5e6c 100644 --- a/test/800-smali/expected.txt +++ b/test/800-smali/expected.txt @@ -29,4 +29,6 @@ b/22331663 (pass) b/22331663 (fail) b/22881413 b/20843113 +b/23201502 (float) +b/23201502 (double) Done! diff --git a/test/800-smali/smali/b_23201502.smali b/test/800-smali/smali/b_23201502.smali new file mode 100644 index 0000000..d958938 --- /dev/null +++ b/test/800-smali/smali/b_23201502.smali @@ -0,0 +1,23 @@ +.class public LB23201502; + +.super Ljava/lang/Object; + +.method public static runFloat()V + .registers 3 + const v0, 0 # Null array. + const v1, 0 # 0 index into array. + const v2, 0 # 0 value, will be turned into float. + int-to-float v2, v2 # Definitely make v2 float. + aput v2 , v0, v1 # Put into null array. + return-void +.end method + +.method public static runDouble()V + .registers 4 + const v0, 0 # Null array. + const v1, 0 # 0 index into array. + const v2, 0 # 0 value, will be turned into double. + int-to-double v2, v2 # Definitely make v2+v3 double. + aput-wide v2 , v0, v1 # Put into null array. + return-void +.end method diff --git a/test/800-smali/src/Main.java b/test/800-smali/src/Main.java index e487374..1b954a7 100644 --- a/test/800-smali/src/Main.java +++ b/test/800-smali/src/Main.java @@ -103,6 +103,10 @@ public class Main { new Object[] { false }, new VerifyError(), null)); testCases.add(new TestCase("b/22881413", "B22881413", "run", null, null, null)); testCases.add(new TestCase("b/20843113", "B20843113", "run", null, null, null)); + testCases.add(new TestCase("b/23201502 (float)", "B23201502", "runFloat", null, + new NullPointerException(), null)); + testCases.add(new TestCase("b/23201502 (double)", "B23201502", "runDouble", null, + new NullPointerException(), null)); } public void runTests() { |