1 ; Copyright (C) 2008 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 .source T_return_object_6.java 16 .class public dot.junit.opcodes.return_object.d.T_return_object_6 17 .super java/lang/Object 18 19 20 .method public <init>()V 21 .limit regs 1 22 23 invoke-direct {v0}, java/lang/Object/<init>()V 24 return-void 25 .end method 26 27 .method private static test()Ljava/lang/String; 28 .limit regs 5 29 30 const-string v0, "aaa" 31 const-string v1, "bbb" 32 const-string v2, "ccc" 33 const-string v3, "ddd" 34 return-object v3 35 .end method 36 37 .method public run()Ljava/lang/String; 38 .limit regs 10 39 const-string v1, "a" 40 const-string v2, "b" 41 const-string v3, "c" 42 invoke-static {}, dot/junit/opcodes/return_object/d/T_return_object_6/test()Ljava/lang/String; 43 move-result-object v7 44 45 const-string v8, "ddd" 46 if-ne v7, v8, Label43 47 48 const-string v7, "a" 49 if-ne v1, v7, Label43 50 51 const-string v7, "b" 52 if-ne v2, v7, Label43 53 54 const-string v7, "c" 55 if-ne v3, v7, Label43 56 57 const-string v0, "hello" 58 return-object v0 59 Label43: 60 const-string v0, "a" 61 return-object v0 62 .end method 63 64 65