blob: e096f4c59d62b1aa60a5729924f1dce406f56089 [file] [log] [blame]
Tsu Chiang Chuang9a223d72011-04-27 17:19:46 -07001; 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_opc_throw_12.java
16.class public dot.junit.opcodes.opc_throw.d.T_opc_throw_12
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 public run()Z
28.limit regs 2
29
30Label0:
31 invoke-direct {v1}, dot/junit/opcodes/opc_throw/d/T_opc_throw_12/test()Z
32 move-result v0
33 return v0
34Label1:
35 const v0, 0
36 return v0
37
38.catch java/lang/RuntimeException from Label0 to Label1 using Label1
39.end method
40
41
42.method private test()Z
43.limit regs 2
44Label0:
45 new-instance v0, java/lang/RuntimeException
46 invoke-direct {v0}, java/lang/RuntimeException/<init>()V
47 throw v0
48Label1:
49 const v1, 1
50 return v1
51
52.catch java/lang/RuntimeException from Label0 to Label1 using Label1
53.end method