aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/Case.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/testsuite/libjava.compile/Case.java')
-rw-r--r--libjava/testsuite/libjava.compile/Case.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/Case.java b/libjava/testsuite/libjava.compile/Case.java
new file mode 100644
index 0000000..c5eb1d5
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/Case.java
@@ -0,0 +1,15 @@
+// Simple compiler test.
+
+public class Case
+{
+ public static int foo (int i, support.Case x)
+ {
+ switch (i)
+ {
+ case x.A:
+ return 1;
+ default:
+ return 0;
+ }
+ }
+}