diff --git a/test/StackOverflow.java b/test/StackOverflow.java index 0a26217e65..c613fe5616 100644 --- a/test/StackOverflow.java +++ b/test/StackOverflow.java @@ -1,14 +1,14 @@ public class StackOverflow { - private static void test1() { - test1(); + private static int test1() { + return test1() + 1; } - private static void test2() { - test3(); + private static int test2() { + return test3() + 1; } - private static void test3() { - test2(); + private static int test3() { + return test2() + 1; } public static void main(String[] args) {