* tests/regression/jasmin/runtest: Delete temporary files.
[cacao.git] / tests / regression / jasmin / test_verify_fail_ret_bad_type.j
1 .class public test_verify_fail_ret_bad_type
2 .super java/lang/Object
3
4 ; ======================================================================
5
6 .method public <init>()V
7    aload_0
8    invokenonvirtual java/lang/Object/<init>()V
9    return
10 .end method
11
12 ; ======================================================================
13
14 .method public static checkI(I)V
15         .limit locals 1
16         .limit stack 10
17         getstatic java/lang/System/out Ljava/io/PrintStream;
18         iload_0
19         invokevirtual java/io/PrintStream/println(I)V
20         return
21 .end method
22
23 ; ======================================================================
24
25 .method public static main([Ljava/lang/String;)V
26         .limit stack 2
27         .limit locals 3
28
29         ldc 35
30         istore 1
31
32         aload 0
33         ifnull force_basic_block_boundary
34
35         ; --------------------------------------------------
36
37         jsr sbr_1
38
39         ; --------------------------------------------------
40
41 force_basic_block_boundary:
42
43         iload 1
44         invokestatic test_verify_fail_jsr_ret_type/checkI(I)V
45
46         return
47         
48 sbr_1:
49         pop
50         ldc "string"
51         astore 2
52         ret 2
53         ; ERROR: VerifyError.*RET with non-returnAddress
54
55 .end method