fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / libjava / testsuite / libjava.compile / final_local_switch.java
blobc4a4de6ab36edb4bd364500c356a2418f7105cf5
1 // This bug was discovered while working on java/1413 (compiling freetds.)
2 // http://gcc.gnu.org/ml/java-prs/2000-q4/msg00156.html
3 // The following code should build.
5 class final_local_switch {
6 void foo (int type) {
7 final byte CHARSET_CHANGE = (byte)3;
8 final byte CHARSET_CHANGES = (byte)4;
9 switch (type) {
10 case CHARSET_CHANGE:
11 break;
12 case CHARSET_CHANGES:
13 break;