summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/final_int.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/testsuite/libjava.lang/final_int.java')
-rw-r--r--libjava/testsuite/libjava.lang/final_int.java22
1 files changed, 22 insertions, 0 deletions
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 ();
+ }
+}