mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-18 09:54:16 +08:00
28 lines
457 B
Java
28 lines
457 B
Java
|
public class PR12374 {
|
||
|
|
||
|
/* We weren't coping with field refs on a string constant... */
|
||
|
|
||
|
Object Foo()
|
||
|
{
|
||
|
return "".CASE_INSENSITIVE_ORDER;
|
||
|
}
|
||
|
|
||
|
/* Special casing access to array.length while analysing syntax is
|
||
|
evil. Especially when it means we can't cope with a type
|
||
|
called length. */
|
||
|
|
||
|
class length
|
||
|
{
|
||
|
static final int i = 2;
|
||
|
}
|
||
|
|
||
|
int bar()
|
||
|
{
|
||
|
return length.i;
|
||
|
}
|
||
|
|
||
|
public static void main (String[] argv)
|
||
|
{
|
||
|
}
|
||
|
}
|