iface.java: New file.
* 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
This commit is contained in:
parent
9ffccc97f5
commit
26356fee5b
22 changed files with 165 additions and 0 deletions
36
libjava/testsuite/libjava.compile/inner_1.java
Normal file
36
libjava/testsuite/libjava.compile/inner_1.java
Normal file
|
@ -0,0 +1,36 @@
|
|||
// 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 {
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue