summaryrefslogtreecommitdiffstats
path: root/test/unit/results/TestClassLoop.dec
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/results/TestClassLoop.dec')
-rw-r--r--test/unit/results/TestClassLoop.dec39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/unit/results/TestClassLoop.dec b/test/unit/results/TestClassLoop.dec
new file mode 100644
index 0000000..3870f83
--- /dev/null
+++ b/test/unit/results/TestClassLoop.dec
@@ -0,0 +1,39 @@
+package unit.classes;
+
+
+public class TestClassLoop {
+
+ 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");
+ }
+ }
+}