OSDN Git Service

PR libgcj/27171:
[pf3gnuchains/gcc-fork.git] / libjava / testsuite / libjava.compile / PR12374.java
1 public class PR12374 {
2
3   /* We weren't coping with field refs on a string constant...  */
4
5   Object Foo()
6   {
7     return "".CASE_INSENSITIVE_ORDER;
8   }
9
10   /* Special casing access to array.length while analysing syntax is
11      evil.  Especially when it means we can't cope with a type
12      called length.  */
13
14   class length
15   {
16     static final int i = 2;
17   }
18
19   int bar()
20   {
21     return length.i;
22   }
23
24   public static void main (String[] argv)
25   {
26   }
27 }