codegen: handle exceptions of a method
[mate.git] / tests / ArgumentPassing1.java
1 package tests;
2
3 public class ArgumentPassing1 {
4         public static void main(String []args) {
5                 System.out.printf("result: 0x%08x\n", myadder(23, 4, 0x77)); // 0x92
6                 noreturn(23, 4, 0x77); // nothing
7                 System.out.printf("result: 0x%08x\n", noargs()); // 0x1337
8         }
9
10         public static int myadder(int a, int b, int c) {
11                 return a + b + c;
12         }
13
14         public static void noreturn(int a, int b, int c) {
15                 return;
16         }
17
18         public static int noargs() {
19                 return -0x1337;
20         }
21 }