summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-12 18:34:50 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-12 18:34:50 +0000
commit45ba0d623ad80a0698f3693f2bac8edb8ed1dbbd (patch)
tree4f51074a6b1efa1f071a9ac8e12071fa58694576
parent21ac0c34e1607c194341e515705aa7bfdf83fc9c (diff)
downloadgcc-45ba0d623ad80a0698f3693f2bac8edb8ed1dbbd.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31944 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libjava/testsuite/ChangeLog9
-rw-r--r--libjava/testsuite/libjava.lang/final_int.java22
-rw-r--r--libjava/testsuite/libjava.lang/final_int.out2
-rw-r--r--libjava/testsuite/libjava.lang/final_static_and_friend.java17
-rw-r--r--libjava/testsuite/libjava.lang/final_static_and_friend.out1
-rw-r--r--libjava/testsuite/libjava.lang/inner_interface.java27
-rw-r--r--libjava/testsuite/libjava.lang/inner_interface.out2
7 files changed, 80 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog
index 6cd4c115b3f..d4b6471eb49 100644
--- a/libjava/testsuite/ChangeLog
+++ b/libjava/testsuite/ChangeLog
@@ -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
index 00000000000..e225c7b2822
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/final_int.java
@@ -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
index 00000000000..a7cbe2c9a41
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/final_int.out
@@ -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
index 00000000000..b5ca6100db6
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/final_static_and_friend.java
@@ -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
index 00000000000..257e563266b
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/final_static_and_friend.out
@@ -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
index 00000000000..b1e6789a99e
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/inner_interface.java
@@ -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
index 00000000000..0c977d54a48
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/inner_interface.out
@@ -0,0 +1,2 @@
+Testing class `inner_interface'...
+This is baz.inner_interface 14022000