source: trunk/gcc/libjava/testsuite/libjava.compile/final_local_switch.java@ 2446

Last change on this file since 2446 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 395 bytes
Line 
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.
4
5class 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;
14 }
15 }
16}
Note: See TracBrowser for help on using the repository browser.