get hooked into disjoint
[IRC.git] / Robust / src / Tests / disjoint / definite / test.java
index 57b49195df0c0ee1db174ed2323506817a9906be..898d1d8725996b998b0498c5f193a5cacc14f0db 100644 (file)
@@ -1,8 +1,27 @@
+public class Foo {
+  public Foo next;
+}
 
 public class Test {
 
+  
+
   static public void main( String args[] ) {
-    int x = 1;
-    System.out.println( "Hi!"+x );
+    
+    Foo f = new Foo();
+    Foo g = f;
+
+    while( false ) {
+      f.next = new Foo();
+      f = f.next;
+    }
+
+    f = yodel( f, g );
+
+    System.out.println( f );
+  }
+
+  static public Foo yodel( Foo a, Foo b ) {
+    return a.next;
   }
 }