diff options
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/testsuite/libjava.compile/PR12374.java | 27 |
2 files changed, 32 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 6d8b383..e64b114 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-12-03 Ralph Loader <rcl@ihug.co.nz> + + PR java/12374: + * libjava.compile/PR12374.java: New file. + 2003-12-01 Jeff Sturm <jsturm@one-point.com> PR optimization/13024 diff --git a/libjava/testsuite/libjava.compile/PR12374.java b/libjava/testsuite/libjava.compile/PR12374.java new file mode 100644 index 0000000..19e8193 --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR12374.java @@ -0,0 +1,27 @@ +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) + { + } +} |