diff options
Diffstat (limited to 'plugins/java-decompiler/engine/testData/results/TestClassLoop.dec')
-rw-r--r-- | plugins/java-decompiler/engine/testData/results/TestClassLoop.dec | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/plugins/java-decompiler/engine/testData/results/TestClassLoop.dec b/plugins/java-decompiler/engine/testData/results/TestClassLoop.dec new file mode 100644 index 000000000000..74b8bac5d5e7 --- /dev/null +++ b/plugins/java-decompiler/engine/testData/results/TestClassLoop.dec @@ -0,0 +1,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"); + } + } +} |