Calin Juravle | 132eb43 | 2016-10-28 20:09:56 +0100 | [diff] [blame^] | 1 | # Copyright (C) 2016 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | |
| 16 | .class public LErrClass; |
| 17 | |
| 18 | .super Ljava/lang/Object; |
| 19 | |
| 20 | .method public static errMethod()J |
| 21 | .registers 8 |
| 22 | const/4 v0, 0x0 |
| 23 | const/4 v3, 0x0 |
| 24 | aget v1, v0, v3 # v0 is null, this will alays throw and the invalid code |
| 25 | # below will not be verified. |
| 26 | move v3, v4 |
| 27 | move-wide/from16 v6, v2 # should trigger a verification error if verified as |
| 28 | # v3 is a single register but used as a pair here. |
| 29 | return v6 |
| 30 | .end method |
| 31 | |
| 32 | # Add a field to work around demerger bug b/18051191. |
| 33 | # Failure to verify dex file '...': Offset(552) should be zero when size is zero for field-ids. |
| 34 | .field private a:I |