mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 13:39:58 +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
37 lines
674 B
Java
37 lines
674 B
Java
// inner class regression test.
|
|
|
|
package bar.foo;
|
|
|
|
class other {
|
|
class foo {}
|
|
}
|
|
|
|
class inner_1 {
|
|
static void bar () {
|
|
inner_1 xxxx; // Refers to inner_1
|
|
bar.foo.another xyz; // Refers to non inner another
|
|
bar.foo.other.foo X; // OK to declare, inner class foo
|
|
bar.foo.inner_1.t bar; // Inner class t
|
|
inner_1.t foo; // Inner class t
|
|
t foobar; // Inner class t
|
|
other.foo zag; // Valid for declaration.
|
|
t.ungah x;
|
|
}
|
|
void foo () {
|
|
// z.t.u foo;
|
|
t t1 = new t();
|
|
t1.print ();
|
|
new t().print();
|
|
}
|
|
|
|
class t {
|
|
void print () {
|
|
System.out.println ("This is `inner_1.t'");
|
|
}
|
|
class ungah {}
|
|
}
|
|
}
|
|
|
|
class another {
|
|
}
|