diff options
author | Stiver <stiver.mail@gmail.com> | 2014-08-09 17:34:24 +0200 |
---|---|---|
committer | Stiver <stiver.mail@gmail.com> | 2014-08-09 17:34:24 +0200 |
commit | 70bf7f3f6993c6ea23dd568e39257b9c0dd6c8c7 (patch) | |
tree | c28f29fb61347743d7a236014d84e946368a9f9a /test/unit/classes/TestClassVar.java | |
parent | 3b9b180d94cd259f34cf05e7275fe29e309103e2 (diff) | |
download | fernflower-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.java | 44 |
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(); + } + } + } + +} |