aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/narrow_case.java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-08-27 16:07:02 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-08-27 16:07:02 +0000
commit8632ed40b6999d80593096177abe87deee06c165 (patch)
tree728a0a159b4957ba3e1ef0ff27919811bcfc9332 /libjava/testsuite/libjava.compile/narrow_case.java
parent7acc97e02e0ad7120e93212e8bcf683b50118d58 (diff)
downloadgcc-8632ed40b6999d80593096177abe87deee06c165.zip
gcc-8632ed40b6999d80593096177abe87deee06c165.tar.gz
gcc-8632ed40b6999d80593096177abe87deee06c165.tar.bz2
* libjava.compile/narrow_case.java: New file.
From-SVN: r56604
Diffstat (limited to 'libjava/testsuite/libjava.compile/narrow_case.java')
-rw-r--r--libjava/testsuite/libjava.compile/narrow_case.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/narrow_case.java b/libjava/testsuite/libjava.compile/narrow_case.java
new file mode 100644
index 0000000..48b5682
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/narrow_case.java
@@ -0,0 +1,11 @@
+public class narrow_case
+{
+ private int test(byte b)
+ {
+ switch (b)
+ {
+ case '0' :return 0;
+ }
+ return 99;
+ }
+}