summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/Case.java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-07 14:42:40 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-07 14:42:40 +0000
commit2c60951ba0efef23e2b765964b5dc0f1f49438a9 (patch)
treed96801a16fdf03a5682ef98730fe333a46eef944 /libjava/testsuite/libjava.compile/Case.java
parent1135eed2207f8f82c589e42ce113a1c2f0310778 (diff)
downloadgcc-2c60951ba0efef23e2b765964b5dc0f1f49438a9.tar.gz
Initial revision
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26263 138bc75d-0d04-0410-961f-82ee72b054a4
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 00000000000..c5eb1d51947
--- /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;
+ }
+ }
+}