repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git]
/
libjava
/
testsuite
/
libjava.lang
/
anon_ctor_itf_arg.java
blob
1fd16f12b8305e92927cab94e1e8dcb62f3aa7f7
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
}