fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / libjava / testsuite / libjava.compile / inner_1.java
blobd9a0210a9285eb8bfd2596d34bd3ba7a6227140b
1 // inner class regression test.
3 package bar.foo;
5 class other {
6 class foo {}
9 class inner_1 {
10 static void bar () {
11 inner_1 xxxx; // Refers to inner_1
12 bar.foo.another xyz; // Refers to non inner another
13 bar.foo.other.foo X; // OK to declare, inner class foo
14 bar.foo.inner_1.t bar; // Inner class t
15 inner_1.t foo; // Inner class t
16 t foobar; // Inner class t
17 other.foo zag; // Valid for declaration.
18 t.ungah x;
20 void foo () {
21 // z.t.u foo;
22 t t1 = new t();
23 t1.print ();
24 new t().print();
27 class t {
28 void print () {
29 System.out.println ("This is `inner_1.t'");
31 class ungah {}
35 class another {