diff options
| author | Alexandre Petit-Bianco <apbianco@redhat.com> | 2001-07-13 12:45:05 -0700 |
|---|---|---|
| committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2001-07-13 12:45:05 -0700 |
| commit | e47c5acd7b2c5dcaf4ece03897e9baa12e867cf9 (patch) | |
| tree | d0f63373ed3736d0a874579e065976a6584ec9f8 /libjava/testsuite/libjava.lang/anon_ctor_itf_arg.java | |
| parent | b6e3e1ff580c11f8d95930f12560824471521175 (diff) | |
anon_ctor_itf_arg.java: Moved to `libjava.lang.'
2001-07-12 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.compile/anon_ctor_itf_arg.java: Moved to `libjava.lang.'
* libjava.compile/anon_ctor_itf_arg.out: Likewise
* libjava.lang/invoke_from_inner.java: New file.
* libjava.lang/invoke_from_inner.out: Likewise.
(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00061.html )
From-SVN: r43994
Diffstat (limited to 'libjava/testsuite/libjava.lang/anon_ctor_itf_arg.java')
| -rw-r--r-- | libjava/testsuite/libjava.lang/anon_ctor_itf_arg.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.lang/anon_ctor_itf_arg.java b/libjava/testsuite/libjava.lang/anon_ctor_itf_arg.java new file mode 100644 index 00000000000..1fd16f12b83 --- /dev/null +++ b/libjava/testsuite/libjava.lang/anon_ctor_itf_arg.java @@ -0,0 +1,38 @@ +/* From java/3285, By p.thio@valescom.com */ + +interface I +{ + void print (); +}; + +class C1 +implements I +{ + public void print () { System.out.println ("C1: Message"); } +} + +abstract +class C2 +{ + C2(I i) + { + i.print (); + } + abstract void h(); +} + +public +class anon_ctor_itf_arg +{ + public static + void main(String argv[]) + { + C1 c1 = new C1(); + new C2(c1) + { + void h() + { + } + }; + } +} |
