From ee60d3f9a32f75c628961f40a9bf4f1bf387ac06 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Sun, 14 Apr 2024 02:21:48 -0600 Subject: Proper Allocation sizes for Boil VarDeclaration --- boil/tests/ex33.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'boil/tests') 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 ; + } } -- cgit v1.2.3