anon_ctor_itf_arg.java: New file.
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) From-SVN: r43974
This commit is contained in:
parent
29fcdaaead
commit
c813baa415
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2001-07-12 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* libjava.lang/N19990310_4.xfail: Removed.
|
||||
|
38
libjava/testsuite/libjava.compile/anon_ctor_itf_arg.java
Normal file
38
libjava/testsuite/libjava.compile/anon_ctor_itf_arg.java
Normal file
@ -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()
|
||||
{
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
1
libjava/testsuite/libjava.compile/anon_ctor_itf_arg.out
Normal file
1
libjava/testsuite/libjava.compile/anon_ctor_itf_arg.out
Normal file
@ -0,0 +1 @@
|
||||
C1: Message
|
Loading…
Reference in New Issue
Block a user