mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-27 19:25:51 +08:00
26356fee5b
* libjava.compile/iface.java: New file. * libjava.compile/static_3.java: New file. * libjava.compile/static_2.java: New file. * libjava.compile/static_1.xfail: New file. * libjava.compile/static_1.java: New file. * libjava.compile/redef6.xfail: New file. * libjava.compile/redef6.java: New file. * libjava.compile/redef5.xfail: New file. * libjava.compile/redef5.java: New file. * libjava.compile/redef4.xfail: New file. * libjava.compile/redef4.java: New file. * libjava.compile/redef3.xfail: New file. * libjava.compile/redef3.java: New file. * libjava.compile/redef2.xfail: New file. * libjava.compile/redef2.java: New file. * libjava.compile/redef1.xfail: New file. * libjava.compile/redef1.java: New file. * libjava.compile/not_a_redef.java: New file. * libjava.compile/inner_1.java: New file. * libjava.compile/static_init.xfail: New file. * libjava.compile/static_init.java: New file. From-SVN: r32688
25 lines
304 B
Java
25 lines
304 B
Java
// Test for searching through interface extension.
|
|
|
|
interface basei
|
|
{
|
|
public int method ();
|
|
}
|
|
|
|
interface basei2
|
|
{
|
|
public int confuse ();
|
|
}
|
|
|
|
interface derivedi extends basei, basei2
|
|
{
|
|
public void nothing ();
|
|
}
|
|
|
|
public class iface
|
|
{
|
|
public int try_it (derivedi x)
|
|
{
|
|
return x.method ();
|
|
}
|
|
}
|