OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* testsuite/libjava.lang/ExtraClassLoader.out: New file.
[pf3gnuchains/gcc-fork.git]
/
libjava
/
testsuite
/
libjava.lang
/
anon_ctor_itf_arg.java
1
/* 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
}