anon.java, [...]: New files.
authorAlexandre Petit-Bianco <apbianco@cygnus.com>
Wed, 19 Jan 2000 21:38:43 +0000 (21:38 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 19 Jan 2000 21:38:43 +0000 (21:38 +0000)
2000-01-19  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* libjava.lang/anon.java, libjava.lang/anon2.java,
libjava.lang/anon3.java, libjava.lang/anon4.java,
libjava.lang/direct_read.java, libjava.lang/direct_write.java,
libjava.lang/indirect.java, libjava.lang/indirect_read.java,
libjava.lang/indirect_write.java, libjava.lang/inner1.java,
libjava.lang/inner2.java, libjava.lang/inner3.java,
libjava.lang/inner4.java, libjava.lang/inner_array.java,
libjava.lang/multiple_finit.java,
libjava.lang/private_direct_read.java,
libjava.lang/private_direct_write.java,
libjava.lang/private_indirect_read.java,
libjava.lang/private_indirect_write.java,
libjava.lang/search_outer.java, libjava.lang/tmi.java,
libjava.lang/tp.java, libjava.lang/update_outer.java: New files.

From-SVN: r31511

44 files changed:
libjava/testsuite/ChangeLog
libjava/testsuite/libjava.lang/anon.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/anon.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/anon2.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/anon2.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/anon3.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/anon3.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/anon4.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/anon4.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/direct_read.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/direct_read.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/direct_write.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/direct_write.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/indirect.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/indirect.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/indirect_read.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/indirect_read.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/indirect_write.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/indirect_write.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/inner1.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/inner1.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/inner2.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/inner2.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/inner3.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/inner3.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/inner4.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/inner4.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/inner_array.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/inner_array.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/multiple_finit.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/multiple_finit.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/private_direct_read.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/private_direct_read.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/private_direct_write.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/private_indirect_read.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/private_indirect_write.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/search_outer.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/search_outer.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/tmi.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/tmi.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/tp.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/tp.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/update_outer.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/update_outer.out [new file with mode: 0644]

index b231a736c57f7fabe88989e45bf4cd5898cfeb8b..3184b2e7377d3e62027bbce500ff6baea7f28b3d 100644 (file)
@@ -1,3 +1,20 @@
+2000-01-19  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * libjava.lang/anon.java, libjava.lang/anon2.java,
+       libjava.lang/anon3.java, libjava.lang/anon4.java,
+       libjava.lang/direct_read.java, libjava.lang/direct_write.java,
+       libjava.lang/indirect.java, libjava.lang/indirect_read.java,
+       libjava.lang/indirect_write.java, libjava.lang/inner1.java,
+       libjava.lang/inner2.java, libjava.lang/inner3.java,
+       libjava.lang/inner4.java, libjava.lang/inner_array.java,
+       libjava.lang/multiple_finit.java,
+       libjava.lang/private_direct_read.java,
+       libjava.lang/private_direct_write.java,
+       libjava.lang/private_indirect_read.java,
+       libjava.lang/private_indirect_write.java,
+       libjava.lang/search_outer.java, libjava.lang/tmi.java,
+       libjava.lang/tp.java, libjava.lang/update_outer.java: New files.
+
 2000-01-18  Tom Tromey  <tromey@cygnus.com>
 
        * libjava.compile/inner_pub.java: New file.
diff --git a/libjava/testsuite/libjava.lang/anon.java b/libjava/testsuite/libjava.lang/anon.java
new file mode 100644 (file)
index 0000000..c24b4f0
--- /dev/null
@@ -0,0 +1,52 @@
+// Class anon
+// Generated on Wed Dec 29 10:07:09 PST 1999
+//
+
+
+interface itf {int count = 0;void setCount (int i);int getCount ();}
+
+class anon {
+
+  int count = 34;
+
+  class x implements itf {
+      int count = 3;
+      public void setCount (int j) { }
+      public int getCount () { return count*3; }
+  }
+
+
+  itf foo () {
+      class y implements itf {
+         int count = 3;
+         public void setCount (int j) { count = j; }
+         public int getCount () { return count+1; }
+      }
+      return new y ();
+  }
+
+  itf bar () {
+    return new itf () { 
+      // The class defined right here will implement `itf'
+      int count = 5;
+      public void setCount (int j) { count = j; }
+      public int getCount () { return count+1; }
+    } ;
+  }
+
+  void test () {
+    itf a = foo ();
+    itf b = bar ();
+    x   c = this.new x ();
+    System.out.println (a.getCount ());
+    System.out.println (b.getCount ());
+    System.out.println (c.getCount ());
+    System.out.println (this.count);
+  }
+  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `anon'...");
+    new anon ().test ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/anon.out b/libjava/testsuite/libjava.lang/anon.out
new file mode 100644 (file)
index 0000000..3b397bb
--- /dev/null
@@ -0,0 +1,5 @@
+Testing class `anon'...
+4
+6
+9
+34
diff --git a/libjava/testsuite/libjava.lang/anon2.java b/libjava/testsuite/libjava.lang/anon2.java
new file mode 100644 (file)
index 0000000..a14eef8
--- /dev/null
@@ -0,0 +1,50 @@
+// Class anon2
+// Generated on Wed Dec 29 10:07:09 PST 1999
+//
+
+
+class anon2 {
+
+  int count = 34;
+  int field;
+
+  anon2 () { System.out.println ("anon2()"); } 
+
+  anon2 (foobar x) { 
+    System.out.println ("Yikes!"+x.zoink());
+  }
+
+  anon2 foo () {
+      class y extends anon2 {
+          int count = 3;
+          public void setCount (int j) { count = j; }
+          public int getCount () { return count+1; }
+         y (int i) { System.out.println ("y(int)"); }
+      }
+      return new y (3);
+  }
+
+  anon2 bar () {
+    foobar xyz = new foobar ();
+    return new anon2 (xyz) { 
+      int count = 5;
+      public void setCount (int j) { field = 3; count = j; }
+      public int getCount () { return count+1; }
+    } ;
+  }
+
+  void test () {
+   anon2 b = bar ();
+   anon2 c = foo ();
+  }
+  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `anon2'...");
+    new anon2 ().test ();
+  }
+}
+
+class foobar {
+  public String zoink() { return " zoinked"; }
+}
diff --git a/libjava/testsuite/libjava.lang/anon2.out b/libjava/testsuite/libjava.lang/anon2.out
new file mode 100644 (file)
index 0000000..2a12574
--- /dev/null
@@ -0,0 +1,5 @@
+Testing class `anon2'...
+anon2()
+Yikes! zoinked
+anon2()
+y(int)
diff --git a/libjava/testsuite/libjava.lang/anon3.java b/libjava/testsuite/libjava.lang/anon3.java
new file mode 100644 (file)
index 0000000..0af8804
--- /dev/null
@@ -0,0 +1,28 @@
+// Class anon3
+// Generated on Wed Dec 29 10:07:09 PST 1999
+//
+
+
+class anon3 {
+
+  itf bar () {
+    return new itf () { 
+      int count = 5;
+      public void setCount (int j) { count = 3; }
+      public int getCount () { return count; }
+    } ;
+  }
+
+  void test () {
+   itf x = bar ();
+   System.out.println (x.getCount ());
+  }
+  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `anon3'...");
+    new anon3 ().test ();
+  }
+}
+
+interface itf { void setCount (int j); int getCount(); int count = 0; }
diff --git a/libjava/testsuite/libjava.lang/anon3.out b/libjava/testsuite/libjava.lang/anon3.out
new file mode 100644 (file)
index 0000000..2e59ff3
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `annon3'...
+5
diff --git a/libjava/testsuite/libjava.lang/anon4.java b/libjava/testsuite/libjava.lang/anon4.java
new file mode 100644 (file)
index 0000000..4fd5262
--- /dev/null
@@ -0,0 +1,30 @@
+// Class anon4
+// Generated on Wed Dec 29 10:07:09 PST 1999
+//
+
+
+class anon4 {
+
+  private int field = 3;
+
+  itf bar () {
+    return new itf () { 
+      int count = 5;
+      public void setCount (int j) { count = 3+field; }
+      public int getCount () { return count+field; }
+    } ;
+  }
+
+  void test () {
+   itf x = bar ();
+   System.out.println (x.getCount ());
+  }
+  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `anon4'...");
+    new anon4 ().test ();
+  }
+}
+
+interface itf { void setCount (int j); int getCount(); int count = 0; }
diff --git a/libjava/testsuite/libjava.lang/anon4.out b/libjava/testsuite/libjava.lang/anon4.out
new file mode 100644 (file)
index 0000000..ff8b891
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `anon4'...
+8
diff --git a/libjava/testsuite/libjava.lang/direct_read.java b/libjava/testsuite/libjava.lang/direct_read.java
new file mode 100644 (file)
index 0000000..5734284
--- /dev/null
@@ -0,0 +1,27 @@
+// Class direct_read
+// Generated on Sat Nov 13 23:26:34 UTC 1999
+//
+
+class direct_read {
+
+  int foo;
+
+  class direct_read_inner {
+    void test () {
+      int x = foo;
+      System.out.println ("x="+x);
+    }
+  }
+
+  void foo ()
+  {
+    foo = 670;
+    direct_read_inner inn = this.new direct_read_inner ();
+    inn.test ();
+  }  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `direct_read'...");
+    new direct_read().foo ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/direct_read.out b/libjava/testsuite/libjava.lang/direct_read.out
new file mode 100644 (file)
index 0000000..f8f3c64
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `direct_read'...
+x=670
diff --git a/libjava/testsuite/libjava.lang/direct_write.java b/libjava/testsuite/libjava.lang/direct_write.java
new file mode 100644 (file)
index 0000000..2745f86
--- /dev/null
@@ -0,0 +1,27 @@
+// Class direct_write
+// Generated on Mon Nov 15 17:10:56 UTC 1999
+//
+
+class direct_write {
+
+  int foo;
+
+  class direct_write_inner {
+    void test () {
+      foo  = 670;
+    }
+  }
+
+  void foo ()
+  {
+    foo = 650;
+    direct_write_inner inn = this.new direct_write_inner ();
+    inn.test ();
+    System.out.println ("foo="+foo);
+  }  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `direct_write'...");
+    new direct_write().foo ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/direct_write.out b/libjava/testsuite/libjava.lang/direct_write.out
new file mode 100644 (file)
index 0000000..b4ff636
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `direct_write'...
+foo=670
diff --git a/libjava/testsuite/libjava.lang/indirect.java b/libjava/testsuite/libjava.lang/indirect.java
new file mode 100644 (file)
index 0000000..22bdebc
--- /dev/null
@@ -0,0 +1,33 @@
+// Class indirect
+// Generated on Tue Nov 16 15:53:14 UTC 1999
+// Several indirection to enclosing class
+
+class indirect {
+
+  private int foo;
+
+  class indirect_inner {
+    class other {
+      class inner {
+        void test () {
+          int x = foo;
+          System.out.println ("x="+foo);
+         foo = 671;
+        }
+      }
+    }
+
+  }
+  void foo ()
+  {
+    foo = 670; 
+    indirect_inner inn = this.new indirect_inner ();
+    this.new indirect_inner().new other().new inner ().test ();
+    System.out.println ("foo="+foo);
+  }  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `indirect'...");
+    new indirect().foo ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/indirect.out b/libjava/testsuite/libjava.lang/indirect.out
new file mode 100644 (file)
index 0000000..7eb96f7
--- /dev/null
@@ -0,0 +1,3 @@
+Testing class `indirect'...
+x=670
+foo=671
diff --git a/libjava/testsuite/libjava.lang/indirect_read.java b/libjava/testsuite/libjava.lang/indirect_read.java
new file mode 100644 (file)
index 0000000..48c53a8
--- /dev/null
@@ -0,0 +1,33 @@
+// Class indirect_read
+// Generated on Mon Nov 15 17:20:40 UTC 1999
+//
+
+class indirect_read {
+
+  int foo;
+
+  class indirect_read_inner {
+    void test () {
+    }
+
+    class other {
+      void testx () {
+        int x = foo;
+       System.out.println ("x="+x);
+      }
+    }
+
+  }
+  void foo ()
+  {
+    foo = 670;
+    indirect_read_inner inn = this.new indirect_read_inner ();
+    indirect_read_inner.other o = inn.new other ();
+    o.testx ();
+  }  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `indirect_read'...");
+    new indirect_read().foo ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/indirect_read.out b/libjava/testsuite/libjava.lang/indirect_read.out
new file mode 100644 (file)
index 0000000..bf9d42a
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `indirect_read'...
+x=670
diff --git a/libjava/testsuite/libjava.lang/indirect_write.java b/libjava/testsuite/libjava.lang/indirect_write.java
new file mode 100644 (file)
index 0000000..2f2bb74
--- /dev/null
@@ -0,0 +1,32 @@
+// Class indirect_write
+// Generated on Tue Nov 16 15:01:24 UTC 1999
+//
+
+class indirect_write {
+
+  int foo;
+
+  class indirect_write_inner {
+    void test () {
+    }
+
+    class other {
+      void testx () {
+        foo = 670;
+      }
+    }
+
+  }
+  void foo ()
+  {
+    indirect_write_inner inn = this.new indirect_write_inner ();
+    indirect_write_inner.other x = inn.new other ();
+    x.testx();
+    System.out.println ("foo="+foo);
+  }  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `indirect_write'...");
+    new indirect_write().foo ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/indirect_write.out b/libjava/testsuite/libjava.lang/indirect_write.out
new file mode 100644 (file)
index 0000000..92b2933
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `indirect_write'...
+foo=670
diff --git a/libjava/testsuite/libjava.lang/inner1.java b/libjava/testsuite/libjava.lang/inner1.java
new file mode 100644 (file)
index 0000000..820edf8
--- /dev/null
@@ -0,0 +1,36 @@
+// Class inner1
+// Generated on Thu Nov  4 16:35:03 PST 1999
+//
+
+class inner1 {
+  int i;
+  void foo () {
+    inner1.z x1 = new z();
+    inner1.z.y x = x1.new y();
+    x.bar ();
+    x.print();
+  }
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `inner1'...");
+    new inner1 ().foo();
+  }
+  class z {
+    int j;
+    void foo () {
+      inner1.this.i = 3; 
+    }
+    class y { 
+      int k;
+      void bar () {
+        inner1.this.i = 3;
+        z.this.j = 4;
+        y.this.k = 34;
+      }
+      void print () {
+        System.out.println ("i="+i+", j="+j+", k="+k);
+      }
+    }
+  }
+}
+
diff --git a/libjava/testsuite/libjava.lang/inner1.out b/libjava/testsuite/libjava.lang/inner1.out
new file mode 100644 (file)
index 0000000..d1f9ac8
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `inner1'...
+i=3, j=4, k=34
diff --git a/libjava/testsuite/libjava.lang/inner2.java b/libjava/testsuite/libjava.lang/inner2.java
new file mode 100644 (file)
index 0000000..8ecb6f5
--- /dev/null
@@ -0,0 +1,18 @@
+// Class inner2
+// Generated on Mon Dec  6 14:32:34 PST 1999
+//
+
+class inner2 {
+  int foo = 1999;
+  void foo () 
+  {
+    inner2.this.foo = 666;
+    System.out.println (inner2.this.foo);
+  }
+  void print () {System.out.println (foo);}
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `inner2'...");
+    new inner2().foo ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/inner2.out b/libjava/testsuite/libjava.lang/inner2.out
new file mode 100644 (file)
index 0000000..cd24c86
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `inner2'...
+666
diff --git a/libjava/testsuite/libjava.lang/inner3.java b/libjava/testsuite/libjava.lang/inner3.java
new file mode 100644 (file)
index 0000000..e1cf9da
--- /dev/null
@@ -0,0 +1,23 @@
+// Class inner3
+// Generated on Tue Dec  7 11:37:43 PST 1999
+//
+
+class inner3 {
+  int bar;
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `inner3'...");
+    new inner3().bar ();
+  }
+  void bar () {
+    t xx = this.new t ();
+    xx.bar ();
+  }
+  void foo () { bar = 3; }
+  class t {
+    void bar () {
+      inner3.this.foo ();
+      System.out.println (inner3.this.bar);
+    }
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/inner3.out b/libjava/testsuite/libjava.lang/inner3.out
new file mode 100644 (file)
index 0000000..a7ce991
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `inner3'...
+3
diff --git a/libjava/testsuite/libjava.lang/inner4.java b/libjava/testsuite/libjava.lang/inner4.java
new file mode 100644 (file)
index 0000000..983e668
--- /dev/null
@@ -0,0 +1,34 @@
+// Class inner4
+// Generated on Tue Dec  7 11:43:48 PST 1999
+//
+
+class inner4 {
+    static private int xyz () { return 3; }
+    private String f;
+  
+    String p () {
+       return "public String p()";
+    }
+
+    private String pp (int x, byte y, char c) {
+       return "private String pp("+x+", "+y+", "+c+")";
+    }
+
+    void foo () {
+       t xxx = this.new t();
+       xxx.bar ();
+        pp (3, (byte)34, 'C');
+    }
+    public static void main (String[] arg)
+    {
+       System.out.println ("Testing class `inner4'...");
+       new inner4().foo();
+    }
+    class t {
+       void bar () {
+            System.out.println (p ());
+           System.out.println (pp (3, (byte)34, 'C'));
+            System.out.println (xyz ());
+       }
+    }
+}
diff --git a/libjava/testsuite/libjava.lang/inner4.out b/libjava/testsuite/libjava.lang/inner4.out
new file mode 100644 (file)
index 0000000..db879b5
--- /dev/null
@@ -0,0 +1,4 @@
+Testing class `inner4'...
+public String p()
+private String pp(3, 34, C)
+3
diff --git a/libjava/testsuite/libjava.lang/inner_array.java b/libjava/testsuite/libjava.lang/inner_array.java
new file mode 100644 (file)
index 0000000..69f31f0
--- /dev/null
@@ -0,0 +1,30 @@
+// Class inner_array
+// Generated on Fri Nov 19 13:19:47 PST 1999
+//
+
+class inner_array {
+
+  private int[] foo;
+
+  class array_inner {
+    void test () {
+      int x = foo[2];
+      System.out.println ("x="+x);
+      foo [1] = 34;
+      foo [1]++;
+    }
+  }
+  void foo ()
+  {
+    foo = new int [3];
+    foo[2]=670;
+    array_inner inn = this.new array_inner ();
+    inn.test ();
+    System.out.println ("foo[1]="+foo[1]);
+  }  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `inner_array'...");
+    new inner_array().foo ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/inner_array.out b/libjava/testsuite/libjava.lang/inner_array.out
new file mode 100644 (file)
index 0000000..88b9287
--- /dev/null
@@ -0,0 +1,3 @@
+Testing class `inner_array'...
+x=670
+foo[1]=35
diff --git a/libjava/testsuite/libjava.lang/multiple_finit.java b/libjava/testsuite/libjava.lang/multiple_finit.java
new file mode 100644 (file)
index 0000000..a05ecb3
--- /dev/null
@@ -0,0 +1,28 @@
+// Class multiple_finit
+// Generated on Mon Jan  3 20:07:18 PST 2000
+//
+
+class multiple_finit {
+
+  int foo = 99;
+
+  class multiple_finit_inner {
+    int inner = 34;
+    void test () {
+      System.out.println (inner);
+      System.out.println (foo);
+    }
+  }
+  void foo (String s)
+  {
+    multiple_finit_inner inn = this.new multiple_finit_inner ();
+    inn.test ();
+    System.out.println (foo);
+  }  
+  void testx () { }
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `multiple_finit'...");
+    new multiple_finit().foo ("");
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/multiple_finit.out b/libjava/testsuite/libjava.lang/multiple_finit.out
new file mode 100644 (file)
index 0000000..65ee05f
--- /dev/null
@@ -0,0 +1,4 @@
+Testing class `multiple_finit'...
+34
+99
+99
diff --git a/libjava/testsuite/libjava.lang/private_direct_read.java b/libjava/testsuite/libjava.lang/private_direct_read.java
new file mode 100644 (file)
index 0000000..46d8fc3
--- /dev/null
@@ -0,0 +1,26 @@
+// Class private_direct_read
+// Generated on Tue Nov 16 15:04:13 UTC 1999
+//
+
+class private_direct_read {
+
+  private int foo;
+
+  class private_direct_read_inner {
+    void test () {
+      int x = foo;
+      System.out.println ("x="+x);
+    }
+  }
+  void foo ()
+  {
+    foo = 670;
+    private_direct_read_inner inn = this.new private_direct_read_inner ();
+    inn.test ();
+  }  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `private_direct_read'...");
+    new private_direct_read().foo ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/private_direct_read.out b/libjava/testsuite/libjava.lang/private_direct_read.out
new file mode 100644 (file)
index 0000000..11d665d
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `private_direct_read'...
+x=670
diff --git a/libjava/testsuite/libjava.lang/private_direct_write.java b/libjava/testsuite/libjava.lang/private_direct_write.java
new file mode 100644 (file)
index 0000000..3c7a887
--- /dev/null
@@ -0,0 +1,25 @@
+// Class private_direct_write
+// Generated on Tue Nov 16 15:05:54 UTC 1999
+//
+
+class private_direct_write {
+
+  private int foo;
+
+  class private_direct_write_inner {
+    void test () {
+      foo = 670;
+    }
+  }
+  void foo ()
+  {
+    private_direct_write_inner inn = this.new private_direct_write_inner ();
+    inn.test ();
+    System.out.println ("foo="+foo);
+  }  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `private_direct_write'...");
+    new private_direct_write().foo ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/private_indirect_read.java b/libjava/testsuite/libjava.lang/private_indirect_read.java
new file mode 100644 (file)
index 0000000..9a37bfd
--- /dev/null
@@ -0,0 +1,32 @@
+// Class private_indirect_read
+// Generated on Tue Nov 16 15:34:56 UTC 1999
+//
+
+class private_indirect_read {
+
+  private int foo;
+
+  class private_indirect_read_inner {
+    void test () {
+    }
+    class other {
+      void testx () {
+        int x = foo;
+        System.out.println ("x="+x);
+      }
+    }
+
+  }
+  void foo ()
+  {
+    foo=670;
+    private_indirect_read_inner inn = this.new private_indirect_read_inner ();
+    private_indirect_read_inner.other o = inn.new other ();
+    o.testx();
+  }  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `private_indirect_read'...");
+    new private_indirect_read().foo ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/private_indirect_write.java b/libjava/testsuite/libjava.lang/private_indirect_write.java
new file mode 100644 (file)
index 0000000..f706b20
--- /dev/null
@@ -0,0 +1,32 @@
+// Class private_indirect_write
+// Generated on Tue Nov 16 15:44:49 UTC 1999
+//
+
+class private_indirect_write {
+
+  private int foo;
+
+  class private_indirect_write_inner {
+    void test () {
+    }
+
+    class other {
+      void test () {
+        foo = 670;
+      }
+    }
+
+  }
+  void foo ()
+  {
+    private_indirect_write_inner inn = this.new private_indirect_write_inner ();
+    private_indirect_write_inner.other x = inn.new other ();
+    x.test ();
+    System.out.println ("foo="+foo);
+  }  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `private_indirect_write'...");
+    new private_indirect_write().foo ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/search_outer.java b/libjava/testsuite/libjava.lang/search_outer.java
new file mode 100644 (file)
index 0000000..66567df
--- /dev/null
@@ -0,0 +1,28 @@
+// Class search_outer.java
+// Generated on Thu Nov 18 18:40:43 UTC 1999
+//
+
+class search_outer {
+
+  private int foo;
+
+  class search_outer_inner {
+    void test () {
+      foo++;
+      System.out.println ("foo="+foo);
+      foo += 3;
+      System.out.println ("foo="+foo);
+    }
+  }
+  void foo ()
+  {
+    foo = 3;
+    search_outer_inner inn = this.new search_outer_inner ();
+    inn.test ();
+  }  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `search_outer'...");
+    new search_outer().foo ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/search_outer.out b/libjava/testsuite/libjava.lang/search_outer.out
new file mode 100644 (file)
index 0000000..df2862d
--- /dev/null
@@ -0,0 +1,3 @@
+Testing class `search_outer'...
+foo=4
+foo=7
diff --git a/libjava/testsuite/libjava.lang/tmi.java b/libjava/testsuite/libjava.lang/tmi.java
new file mode 100644 (file)
index 0000000..be2395a
--- /dev/null
@@ -0,0 +1,43 @@
+// Class t
+// Generated on Thu Nov  4 16:35:03 PST 1999
+//
+
+class tmi {
+  int i;
+  void foo () {
+    tmi.z x1 = new z();
+    tmi.z.y x = x1.new y();
+    x.bar ();
+    x.print();
+    tmi.this.i = 666;
+    x.print();
+    tmi.this.print();
+  }
+  void print () {
+    System.out.println ("tmi.print()");
+  }
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `tmi'...");
+    new tmi ().foo();
+  }
+  class z {
+    int j;
+    void foo () {
+      tmi.this.i = 3; 
+    }
+    class y { 
+      int k;
+      void bar () {
+        tmi.this.i = 3;
+        tmi.this.print ();
+        z.this.j = 4;
+        y.this.k = 34;
+      }
+      void print () {
+        System.out.println ("i="+i+", j="+j+", k="+k);
+      }
+    }
+  }
+}
+
diff --git a/libjava/testsuite/libjava.lang/tmi.out b/libjava/testsuite/libjava.lang/tmi.out
new file mode 100644 (file)
index 0000000..7c87756
--- /dev/null
@@ -0,0 +1,5 @@
+Testing class `tmi'...
+tmi.print()
+i=3, j=4, k=34
+i=666, j=4, k=34
+tmi.print()
diff --git a/libjava/testsuite/libjava.lang/tp.java b/libjava/testsuite/libjava.lang/tp.java
new file mode 100644 (file)
index 0000000..b6d9fbe
--- /dev/null
@@ -0,0 +1,36 @@
+// Class tp
+// Generated on Thu Nov  4 16:35:03 PST 1999
+//
+
+class tp {
+  private int i;
+  void foo () {
+    tp.z x1 = new z();
+    tp.z.y x = x1.new y();
+    x.bar ();
+    x.print();
+  }
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `tp'...");
+    new tp ().foo();
+  }
+  class z {
+    private int j;
+    void foo () {
+      tp.this.i = 3; 
+    }
+    class y { 
+      private int k;
+      void bar () {
+        tp.this.i = 3;
+        z.this.j = 4;
+        y.this.k = 34;
+      }
+      void print () {
+        System.out.println ("i="+i+", j="+j+", k="+k);
+      }
+    }
+  }
+}
+
diff --git a/libjava/testsuite/libjava.lang/tp.out b/libjava/testsuite/libjava.lang/tp.out
new file mode 100644 (file)
index 0000000..f89aac6
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `tp'...
+i=3, j=4, k=34
diff --git a/libjava/testsuite/libjava.lang/update_outer.java b/libjava/testsuite/libjava.lang/update_outer.java
new file mode 100644 (file)
index 0000000..b2e8437
--- /dev/null
@@ -0,0 +1,28 @@
+// Class update_outer
+// Generated on Thu Nov 18 21:37:21 UTC 1999
+//
+
+class update_outer {
+
+  private String foo;
+
+  class update_outer_inner {
+    void test () {
+      foo += " M$";
+      System.out.println ("foo=`"+foo+"'");
+    }
+
+
+  }
+  void foo ()
+  {
+    foo = "780";
+    update_outer_inner inn = this.new update_outer_inner ();
+    inn.test ();
+  }  
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `update_outer'...");
+    new update_outer().foo ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/update_outer.out b/libjava/testsuite/libjava.lang/update_outer.out
new file mode 100644 (file)
index 0000000..cff7c5d
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `update_outer'...
+foo=`780 M$'