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/pr25429.java13
-rw-r--r--libjava/testsuite/libjava.compile/rh175833.java13
2 files changed, 26 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/pr25429.java b/libjava/testsuite/libjava.compile/pr25429.java
new file mode 100644
index 0000000..a869b58
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/pr25429.java
@@ -0,0 +1,13 @@
+public class pr25429
+{
+ private static final int CONST = 0;
+ class I {
+ public void f () {
+ switch(0) {
+ case CONST:
+ }
+ }
+ }
+
+ public static void main(String[] args) { }
+}
diff --git a/libjava/testsuite/libjava.compile/rh175833.java b/libjava/testsuite/libjava.compile/rh175833.java
new file mode 100644
index 0000000..6bdec57
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/rh175833.java
@@ -0,0 +1,13 @@
+// Follow-on to PR 25429
+public class rh175833
+{
+ private static final Object CONST = new Object();
+ class I {
+ public Object f () {
+ // We need an accessor here.
+ return CONST;
+ }
+ }
+
+ public static void main(String[] args) { }
+}