final_assignment_check.java: New file.
2001-08-28 Alexandre Petit-Bianco <apbianco@redhat.com> * libjava.compile/final_assignment_check.java: New file. * libjava.compile/final_assignment_check.xfail: Likewise. * libjava.compile/final_local_switch.java: Likewise. (http://gcc.gnu.org/ml/java-patches/2001-q3/msg00342.html ) From-SVN: r45346
This commit is contained in:
committed by
Alexandre Petit-Bianco
parent
3ed218d4c9
commit
bb52725527
@@ -0,0 +1,16 @@
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user