summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-07-09 11:01:07 -0700
committerAndreas Gampe <agampe@google.com>2015-07-09 14:51:40 -0700
commitc08e0c73bb397bc535c299dc0b9062f9ee2d86a0 (patch)
treee1674945c7ada2aa20d00cf50d658dd695612bd8 /test
parented8fea782454f3273685b377479cf30e49bce522 (diff)
downloadart-c08e0c73bb397bc535c299dc0b9062f9ee2d86a0.zip
art-c08e0c73bb397bc535c299dc0b9062f9ee2d86a0.tar.gz
art-c08e0c73bb397bc535c299dc0b9062f9ee2d86a0.tar.bz2
ART: Fix test
Fixes a breakage from 38536287f61c9c0fc3bab8c1950cf8c74881482a. Ensure that v4 is not undefined when an exception may be thrown (at the new-instance). Bug: 22331663 Bug: 22371999 (cherry picked from commit 7135ff0fdfd02796d40e7ef3c7527ff127512bd3) Change-Id: Ice36ddda5ca92ea32fa88523dd616d4f2a61027e
Diffstat (limited to 'test')
-rw-r--r--test/800-smali/smali/b_22331663.smali3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/800-smali/smali/b_22331663.smali b/test/800-smali/smali/b_22331663.smali
index af99152..057fc7f 100644
--- a/test/800-smali/smali/b_22331663.smali
+++ b/test/800-smali/smali/b_22331663.smali
@@ -4,6 +4,9 @@
.method public static run(Z)V
.registers 6
+ # Make v4 defined, just use null.
+ const v4, 0
+
if-eqz v5, :Label2
:Label1