mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-28 12:45:24 +08:00
17 lines
395 B
Java
17 lines
395 B
Java
|
// This bug was discovered while working on java/1413 (compiling freetds.)
|
||
|
// http://gcc.gnu.org/ml/java-prs/2000-q4/msg00156.html
|
||
|
// The following code should build.
|
||
|
|
||
|
class final_local_switch {
|
||
|
void foo (int type) {
|
||
|
final byte CHARSET_CHANGE = (byte)3;
|
||
|
final byte CHARSET_CHANGES = (byte)4;
|
||
|
switch (type) {
|
||
|
case CHARSET_CHANGE:
|
||
|
break;
|
||
|
case CHARSET_CHANGES:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|