summaryrefslogtreecommitdiff
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/pr13788.java8
-rw-r--r--libjava/testsuite/libjava.compile/pr21540.java15
2 files changed, 23 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/pr13788.java b/libjava/testsuite/libjava.compile/pr13788.java
new file mode 100644
index 00000000000..44f25ea1ccf
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/pr13788.java
@@ -0,0 +1,8 @@
+class pr13788 {
+ private static final int DUMMY1 = 1 >>> 1;
+
+ public static void main(String [] args) {
+ System.out.println(DUMMY1);
+ }
+}
+
diff --git a/libjava/testsuite/libjava.compile/pr21540.java b/libjava/testsuite/libjava.compile/pr21540.java
new file mode 100644
index 00000000000..4d6841f8b38
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/pr21540.java
@@ -0,0 +1,15 @@
+public class pr21540
+{
+ public static final long xxx = 555;
+
+ public boolean fn (int v)
+ {
+ switch (v)
+ {
+ case ((int) xxx >>> 32):
+ return true;
+ default:
+ return false;
+ }
+ }
+}