2000-02-12 Alexandre Petit-Bianco <apbianco@cygnus.com>
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Feb 2000 18:34:50 +0000 (18:34 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Feb 2000 18:34:50 +0000 (18:34 +0000)
* libjava.lang/inner_interface.out: New file.
* libjava.lang/inner_interface.java: New file.
* libjava.lang/final_int.out: New file.
* libjava.lang/final_int.java: New file.
* libjava.lang/final_static_and_friend.out: New file.
* libjava.lang/final_static_and_friend.java: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31944 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/testsuite/ChangeLog
libjava/testsuite/libjava.lang/final_int.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/final_int.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/final_static_and_friend.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/final_static_and_friend.out [new file with mode: 0644]
libjava/testsuite/libjava.lang/inner_interface.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/inner_interface.out [new file with mode: 0644]

index 6cd4c11..d4b6471 100644 (file)
@@ -1,3 +1,12 @@
+2000-02-12  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * libjava.lang/inner_interface.out: New file.
+       * libjava.lang/inner_interface.java: New file.
+       * libjava.lang/final_int.out: New file.
+       * libjava.lang/final_int.java: New file.
+       * libjava.lang/final_static_and_friend.out: New file.
+       * libjava.lang/final_static_and_friend.java: New file.
+
 2000-02-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
        * libjava.lang/anonarray3.out: New file.
diff --git a/libjava/testsuite/libjava.lang/final_int.java b/libjava/testsuite/libjava.lang/final_int.java
new file mode 100644 (file)
index 0000000..e225c7b
--- /dev/null
@@ -0,0 +1,22 @@
+// Class final_int
+// Generated on Sat Feb 12 01:27:46 PST 2000
+
+class final_int {
+
+  final int x = 30;
+
+  class foo {
+    int bar () {
+      return x;
+    }
+  }
+  void bar () {
+    int x = this.new foo ().bar ();
+    System.out.println (x);
+  }
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `final_int'...");
+    new final_int().bar ();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/final_int.out b/libjava/testsuite/libjava.lang/final_int.out
new file mode 100644 (file)
index 0000000..a7cbe2c
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `final_int'...
+30
diff --git a/libjava/testsuite/libjava.lang/final_static_and_friend.java b/libjava/testsuite/libjava.lang/final_static_and_friend.java
new file mode 100644 (file)
index 0000000..b5ca610
--- /dev/null
@@ -0,0 +1,17 @@
+// Class final_static_and_friend
+// Generated on Sat Feb 12 01:58:38 PST 2000
+
+class final_static_and_friend {
+    final int a = 34;
+    static int b = 34;
+    int c = 34;
+    void foo ()
+    {
+        System.out.println (a+b+c);
+    }
+    public static void main (String[] arg)
+    {
+        new final_static_and_friend ().foo ();
+    }
+
+}
diff --git a/libjava/testsuite/libjava.lang/final_static_and_friend.out b/libjava/testsuite/libjava.lang/final_static_and_friend.out
new file mode 100644 (file)
index 0000000..257e563
--- /dev/null
@@ -0,0 +1 @@
+102
diff --git a/libjava/testsuite/libjava.lang/inner_interface.java b/libjava/testsuite/libjava.lang/inner_interface.java
new file mode 100644 (file)
index 0000000..b1e6789
--- /dev/null
@@ -0,0 +1,27 @@
+// Class inner_interface
+// Generated on Fri Feb 11 16:29:04 PST 2000
+// Simple inner interface example.
+
+class inner_interface {
+  interface bar {
+      static final int field = 14022000;
+      public void inner_interface ();
+  }
+
+  class baz implements inner_interface.bar {
+    public void inner_interface ()
+    {
+      System.out.println ("This is baz.inner_interface "+field);
+    }
+  }
+
+  void x () {
+      this.new baz ().inner_interface ();
+  }
+
+  public static void main (String[] arg)
+  {
+    System.out.println ("Testing class `inner_interface'...");
+    new inner_interface ().x();
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/inner_interface.out b/libjava/testsuite/libjava.lang/inner_interface.out
new file mode 100644 (file)
index 0000000..0c977d5
--- /dev/null
@@ -0,0 +1,2 @@
+Testing class `inner_interface'...
+This is baz.inner_interface 14022000