aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/testsuite/libjava.compile')
-rw-r--r--libjava/testsuite/libjava.compile/PR12374.java27
1 files changed, 27 insertions, 0 deletions
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)
+ {
+ }
+}