codegen: handle exceptions of a method
[mate.git] / tests / CallConv2.java
1 package tests;
2
3 public class CallConv2 {
4         public static void main(String []args) {
5                 int sum = 0;
6                 sum += manyVars(0x125A, 0x11, 0x33, 0x44);
7                 System.out.printf("result: 0x%08x\n", sum);
8         }
9
10         public static int manyVars(int a, int b, int c, int d) {
11                 int x = 0x88;
12                 int y = 0x55;
13
14                 return ((((a - b) - c) + d) + x + y);
15         }
16 }