From 6377548c75f05f0b8599dcfb8d61a56240692334 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Wed, 17 Apr 2024 21:42:42 -0600 Subject: Add all of the tests I forgot to add --- boil/tests/ex41.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 boil/tests/ex41.java (limited to 'boil/tests/ex41.java') diff --git a/boil/tests/ex41.java b/boil/tests/ex41.java new file mode 100644 index 0000000..e07e962 --- /dev/null +++ b/boil/tests/ex41.java @@ -0,0 +1,25 @@ +class ex41 { + public static void main(String[] z) { + A a ; + a = new A() ; + System.out.println(a.foo()) ; + } +} + +class A { + + public int foo() { + int v ; + int w ; + v = 0 ; + w = 0 ; + while (v < 10) { + while (w < 100) { + w = w + 1 ; + } + v = v + 1 ; + } + return w ; + } + +} -- cgit v1.2.3