mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
New test case.
From-SVN: r31951
This commit is contained in:
committed by
Anthony Green
parent
762016bf0a
commit
addcdfec59
19
libjava/testsuite/libjava.compile/assignment.java
Normal file
19
libjava/testsuite/libjava.compile/assignment.java
Normal file
@@ -0,0 +1,19 @@
|
||||
// A definite assignment test.
|
||||
|
||||
public class assignment
|
||||
{
|
||||
public static Byte foo ()
|
||||
{
|
||||
Byte b;
|
||||
|
||||
while (true) {
|
||||
try {
|
||||
b = Byte.decode ("42");
|
||||
break;
|
||||
} catch (NumberFormatException ignored) {}
|
||||
}
|
||||
|
||||
return b;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user