summaryrefslogtreecommitdiffstats
path: root/testData/results/TestClassLoop.dec
blob: 74b8bac5d5e7071dfe83924ebfcd212d1f225e86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package pkg;

public class TestClassLoop {
   public static void testSimpleInfinite() {
      while(true) {
         System.out.println();
      }
   }

   public static void testFinally() {
      boolean var0 = Math.random() > 0.0D;

      while(true) {
         try {
            if(!var0) {
               return;
            }
         } finally {
            System.out.println("1");
         }
      }
   }

   public static void testFinallyContinue() {
      boolean var0 = Math.random() > 0.0D;

      while(true) {
         while(true) {
            try {
               System.out.println("1");
               break;
            } finally {
               if(var0) {
                  System.out.println("3");
                  continue;
               }
            }
         }

         System.out.println("4");
      }
   }
}