OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [anon_ctor_itf_arg.java] - Blame information for rev 765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
/* From java/3285, By p.thio@valescom.com */
2
 
3
interface I
4
{
5
    void print ();
6
};
7
 
8
class C1
9
implements I
10
{
11
    public void print () { System.out.println ("C1: Message"); }
12
}
13
 
14
abstract
15
class C2
16
{
17
    C2(I i)
18
    {
19
        i.print ();
20
    }
21
    abstract void h();
22
}
23
 
24
public
25
class anon_ctor_itf_arg
26
{
27
    public static
28
    void main(String argv[])
29
    {
30
        C1 c1 = new C1();
31
        new C2(c1)
32
        {
33
            void h()
34
            {
35
            }
36
        };
37
    }
38
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.