diff options
| author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-12 21:39:56 +0000 |
|---|---|---|
| committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-12 21:39:56 +0000 |
| commit | 8924a5ed499bc0df8876681adb119cd420eacb92 (patch) | |
| tree | ffb2ce94d42e9dd4253b89b0b19184952e28d15d /libjava/testsuite/libjava.compile/anon_ctor_itf_arg.java | |
| parent | 0412ddc1c81d8ce6bf56e8295c6187ccbf1d51ed (diff) | |
| download | ppe42-gcc-8924a5ed499bc0df8876681adb119cd420eacb92.tar.gz ppe42-gcc-8924a5ed499bc0df8876681adb119cd420eacb92.zip | |
2001-07-12 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.compile/anon_ctor_itf_arg.java: New file.
* libjava.compile/anon_ctor_itf_arg.out: New file.
(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00059.html)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43974 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.compile/anon_ctor_itf_arg.java')
| -rw-r--r-- | libjava/testsuite/libjava.compile/anon_ctor_itf_arg.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/anon_ctor_itf_arg.java b/libjava/testsuite/libjava.compile/anon_ctor_itf_arg.java new file mode 100644 index 00000000000..1fd16f12b83 --- /dev/null +++ b/libjava/testsuite/libjava.compile/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() + { + } + }; + } +} |

