summaryrefslogtreecommitdiffstats
path: root/test/unit/classes/TestClassVar.java
diff options
context:
space:
mode:
authorStiver <stiver.mail@gmail.com>2014-08-09 17:34:24 +0200
committerStiver <stiver.mail@gmail.com>2014-08-09 17:34:24 +0200
commit70bf7f3f6993c6ea23dd568e39257b9c0dd6c8c7 (patch)
treec28f29fb61347743d7a236014d84e946368a9f9a /test/unit/classes/TestClassVar.java
parent3b9b180d94cd259f34cf05e7275fe29e309103e2 (diff)
downloadfernflower-70bf7f3f6993c6ea23dd568e39257b9c0dd6c8c7.tar
fernflower-70bf7f3f6993c6ea23dd568e39257b9c0dd6c8c7.tar.gz
fernflower-70bf7f3f6993c6ea23dd568e39257b9c0dd6c8c7.tar.lz
fernflower-70bf7f3f6993c6ea23dd568e39257b9c0dd6c8c7.tar.xz
fernflower-70bf7f3f6993c6ea23dd568e39257b9c0dd6c8c7.zip
A couple of unit tests
Diffstat (limited to 'test/unit/classes/TestClassVar.java')
-rw-r--r--test/unit/classes/TestClassVar.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/unit/classes/TestClassVar.java b/test/unit/classes/TestClassVar.java
new file mode 100644
index 0000000..fdba5c6
--- /dev/null
+++ b/test/unit/classes/TestClassVar.java
@@ -0,0 +1,44 @@
+package unit.classes;
+
+
+public class TestClassVar {
+
+ private boolean field_boolean = (Math.random() > 0);
+ public int field_int = 0;
+
+ public void testFieldSSAU() {
+
+ for(int i = 0; i < 10; i++) {
+
+ try {
+ System.out.println();
+ } finally {
+ if (field_boolean) {
+ System.out.println();
+ }
+ }
+
+ }
+ }
+
+ public Long testFieldSSAU1() { // IDEA-127466
+ return new Long(field_int++);
+ }
+
+ public void testComplexPropagation() {
+
+ int a = 0;
+
+ while (a < 10) {
+
+ int b = a;
+
+ for(; a < 10 && a == 0; a++) {}
+
+ if (b != a) {
+ System.out.println();
+ }
+ }
+ }
+
+}