summaryrefslogtreecommitdiffstats
path: root/test/800-smali/smali/b_20843113.smali
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-08-13 15:21:45 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-13 15:21:45 +0000
commit5c0e80e27bf67e4d34352ab516c3bedd1d23d4fb (patch)
treeeb5e67e3957f63dbde2c8836474545992c06c6f8 /test/800-smali/smali/b_20843113.smali
parent41f402e2e2e56df3c65914eee60a11c027d2c58c (diff)
parente682a0250702c65a668e39eefdd1c49cfea5f388 (diff)
downloadandroid_art-5c0e80e27bf67e4d34352ab516c3bedd1d23d4fb.tar.gz
android_art-5c0e80e27bf67e4d34352ab516c3bedd1d23d4fb.tar.bz2
android_art-5c0e80e27bf67e4d34352ab516c3bedd1d23d4fb.zip
am e682a025: ART: Change UninitializedThis tracking in the verifier
* commit 'e682a0250702c65a668e39eefdd1c49cfea5f388': ART: Change UninitializedThis tracking in the verifier
Diffstat (limited to 'test/800-smali/smali/b_20843113.smali')
-rw-r--r--test/800-smali/smali/b_20843113.smali34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/800-smali/smali/b_20843113.smali b/test/800-smali/smali/b_20843113.smali
new file mode 100644
index 0000000000..ab3dc4157b
--- /dev/null
+++ b/test/800-smali/smali/b_20843113.smali
@@ -0,0 +1,34 @@
+.class public LB20843113;
+.super Ljava/lang/Object;
+
+
+.method public constructor <init>(I)V
+.registers 2
+
+:Label1
+ # An instruction that may throw, so as to pass UninitializedThis to the handler
+ div-int v1, v1, v1
+
+ # Call the super-constructor
+ invoke-direct {v0}, Ljava/lang/Object;-><init>()V
+
+ # Return normally.
+ return-void
+
+:Label2
+
+
+:Handler
+ move-exception v0 # Overwrite the (last) "this" register. This should be
+ # allowed as we will terminate abnormally below.
+
+ throw v0 # Terminate abnormally
+
+.catchall {:Label1 .. :Label2} :Handler
+.end method
+
+# Just a dummy.
+.method public static run()V
+.registers 1
+ return-void
+.end method