*** empty log message ***

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@216 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent d267a860d3
commit 35b96aaaa1
  1. 28
      jode/test/OptimizeTest.java
  2. 3
      jode/test/TryCatch.java

@ -43,24 +43,18 @@ public class OptimizeTest {
System.err.println("result: "+(g++ + sideInline(g) + g++) + "g: "+g); System.err.println("result: "+(g++ + sideInline(g) + g++) + "g: "+g);
longInline("Hallo", 3); longInline("Hallo", 3);
System.err.println("result:"+ System.err.println("result:"+
(g++ + jode.test.inline.InlineTest (g++ + jode.test.InlineTest
.difficultSideInline(this, g)
+ g++) + "g: "+g);
System.err.println("result:"+
(g++ + jode.inline.InlineTest
.difficultSideInline(this, g)
+ g++) + "g: "+g);
System.err.println("result:"+
(g++ + jode.InlineTest
.difficultSideInline(this, g) .difficultSideInline(this, g)
+ g++) + "g: "+g); + g++) + "g: "+g);
// This was a check which methods are inlined. The result:
// Only methods in the same package or in sub packages.
// System.err.println("result:"+
// (g++ + jode.test.inline.InlineTest
// .difficultSideInline(this, g)
// + g++) + "g: "+g);
// System.err.println("result:"+
// (g++ + jode.InlineTest
// .difficultSideInline(this, g)
// + g++) + "g: "+g);
} }
} }

@ -35,6 +35,7 @@ class TryCatch {
foo(); foo();
a = 2; a = 2;
simple(); simple();
a = (a=4) / (a=0);
a = 3; a = 3;
localsInCatch(); localsInCatch();
a = 4; a = 4;
@ -129,6 +130,8 @@ class TryCatch {
if (simple() < 2) if (simple() < 2)
break; break;
else if (simple() < 3) else if (simple() < 3)
foo();
else
return; return;
} }
System.out.println(); System.out.println();

Loading…
Cancel
Save