aaf88e140be1b1c2ca9009adb4e304d9742d1acb
[IRC.git] / Robust / src / Tests / oooJava / poolalloc / test.java
1 public class Foo {
2   public int z;
3   public Foo() {}
4 }
5
6 public class Test {
7
8   static public void main( String args[] ) {
9
10     int x = 12345;
11
12     for( int i = 0; i < 200000; ++i ) {
13       rblock a {
14         Foo f = new Foo();
15         f.z = 1;
16         x += f.z;
17       }
18       rblock b {
19         x -= f.z;
20       }
21     }
22
23     System.out.println( x );
24   }
25 }