even simpler
authorbdemsky <bdemsky>
Mon, 23 Mar 2009 19:33:47 +0000 (19:33 +0000)
committerbdemsky <bdemsky>
Mon, 23 Mar 2009 19:33:47 +0000 (19:33 +0000)
Robust/src/Tests/OwnershipAnalysisTest/smalltest/smaller.java [new file with mode: 0644]

diff --git a/Robust/src/Tests/OwnershipAnalysisTest/smalltest/smaller.java b/Robust/src/Tests/OwnershipAnalysisTest/smalltest/smaller.java
new file mode 100644 (file)
index 0000000..bd1b7fa
--- /dev/null
@@ -0,0 +1,44 @@
+class small {
+    tiny t1;
+
+    public small(tiny t) {
+       t1=t;
+    }
+
+    public static void main(String x[]) {
+       tiny t=new tiny();
+       small s=new small(t);
+       foo[] farray=s.process();
+    }
+
+    public foo[] process() {
+       foo []farray=new foo[30];
+       while(true) {
+           foo f=createfoo();
+           farray[0]=f;
+       }
+       return farray;
+    }
+    
+    public foo createfoo() {
+       foo f=disjoint test new foo();
+       f.t1=t1;
+       return f;
+    }
+
+
+}
+
+public class tiny {
+    int x;
+    public tiny() {
+
+    }
+}
+
+public class foo {
+    tiny t1;
+    public foo() {
+
+    }
+}
\ No newline at end of file