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/results/TestClassVar.dec | |
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/results/TestClassVar.dec')
-rw-r--r-- | test/unit/results/TestClassVar.dec | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/unit/results/TestClassVar.dec b/test/unit/results/TestClassVar.dec new file mode 100644 index 0000000..cca4d7a --- /dev/null +++ b/test/unit/results/TestClassVar.dec @@ -0,0 +1,43 @@ +package unit.classes; + + +public class TestClassVar { + + private boolean field_boolean = Math.random() > 0.0D; + public int field_int = 0; + + + public void testFieldSSAU() { + for(int var1 = 0; var1 < 10; ++var1) { + try { + System.out.println(); + } finally { + if(this.field_boolean) { + System.out.println(); + } + + } + } + + } + + public Long testFieldSSAU1() { + return new Long((long)(this.field_int++)); + } + + public void testComplexPropagation() { + int var1 = 0; + + while(var1 < 10) { + int var2; + for(var2 = var1; var1 < 10 && var1 == 0; ++var1) { + ; + } + + if(var2 != var1) { + System.out.println(); + } + } + + } +} |