diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-14 02:21:48 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-14 02:21:48 -0600 |
commit | ee60d3f9a32f75c628961f40a9bf4f1bf387ac06 (patch) | |
tree | f424f292d987f6472f9ca1f5283127797461a075 /boil/tests | |
parent | 6ecd1893b4586c7077c6969431b47ca4e0962240 (diff) |
Proper Allocation sizes for Boil VarDeclaration
Diffstat (limited to 'boil/tests')
-rw-r--r-- | boil/tests/ex33.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/boil/tests/ex33.java b/boil/tests/ex33.java index 53e369f..3325ea8 100644 --- a/boil/tests/ex33.java +++ b/boil/tests/ex33.java @@ -1,13 +1,18 @@ -class ex31 { +class ex33 { public static void main(String[] a) { A a ; a = new A() ; - System.out.println(a.foo(12 + 13)) ; + System.out.println(a.bar(0-1, 400, 6*7)) ; + System.out.println(a.foo(0+1, 400)) ; } } class A { - public int foo(int a) { + public int foo(int a, int b) { return 22 ; } + + public int bar(int x, int y, int z) { + return 6 ; + } } |