New test case.
From-SVN: r31951
This commit is contained in:
parent
762016bf0a
commit
addcdfec59
@ -1,3 +1,7 @@
|
|||||||
|
2000-02-12 Anthony Green <green@cygnus.com>
|
||||||
|
|
||||||
|
* libjava.compile/assignment.java: New file.
|
||||||
|
|
||||||
2000-02-12 Anthony Green <green@cygnus.com>
|
2000-02-12 Anthony Green <green@cygnus.com>
|
||||||
|
|
||||||
* libjava.compile/inner_data.java: New file.
|
* libjava.compile/inner_data.java: New file.
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user