* tests/regression/jasmin/runtest: Use [ \t] instead of \s in the
[cacao.git] / tests / regression / jasmin / test_verify_ok_untyped_local.j
1 .class public test_verify_ok_untyped_local
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 check(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 .method public static check(Ljava/lang/String;)V
24         .limit locals 1
25         .limit stack 10
26         getstatic java/lang/System/out Ljava/io/PrintStream;
27         aload_0
28         invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
29         return
30 .end method
31
32 ; ======================================================================
33
34 .method public static main([Ljava/lang/String;)V
35         .limit stack 2
36         .limit locals 2
37
38         ldc "will it work?"
39         astore 1
40
41         aload 0
42         ifnull force_basic_block_boundary
43
44         ; --------------------------------------------------
45
46         ldc 42
47         istore 1
48
49         iload 1
50         invokestatic test_verify_ok_untyped_local/check(I)V
51         ; OUTPUT: 42
52
53         ldc "wow, it works!"
54         astore 1
55
56         ; --------------------------------------------------
57
58 force_basic_block_boundary:
59
60         aload 1
61         invokestatic test_verify_ok_untyped_local/check(Ljava/lang/String;)V
62         ; OUTPUT: wow, it works!
63
64         return
65 .end method
66