]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libjava/testsuite/libjava.lang/invoke_from_inner.java
Imported gcc-4.4.3
[msp430-gcc.git] / libjava / testsuite / libjava.lang / invoke_from_inner.java
diff --git a/libjava/testsuite/libjava.lang/invoke_from_inner.java b/libjava/testsuite/libjava.lang/invoke_from_inner.java
deleted file mode 100644 (file)
index 8659ac6..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-// This test case once showed that `f[0].execute(x)' woudln't be
-// expanded properly, attempting to retrieve this$0 to be used in
-// place of `f[0]'.
-
-abstract class A {
-    abstract public void execute(C x);
-}
-
-class C {}
-
-class Z extends A {
-    public void execute (C x) {
-       System.out.println ("Z.execute");
-    }
-}
-
-public class invoke_from_inner extends A {
-
-    Z f[] = new Z[1];
-    class D extends C {
-       D (C x) {
-           f[0].execute (x);
-           execute (x);
-       }
-    }
-    public void execute (C x) {
-      System.out.println ("invoke_from_inner.execute");
-    }
-
-    public static void main (String a[]) {
-       new invoke_from_inner().foo();
-    }
-    void foo () {
-       f[0] = new Z();
-       new D(new C());
-    }
-}