source:
trunk/gcc/libjava/testsuite/libjava.compile/assignment.java@
3609
| Last change on this file since 3609 was 2, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 251 bytes | |
| Line | |
|---|---|
| 1 | // A definite assignment test. |
| 2 | |
| 3 | public class assignment |
| 4 | { |
| 5 | public static Byte foo () |
| 6 | { |
| 7 | Byte b; |
| 8 | |
| 9 | while (true) { |
| 10 | try { |
| 11 | b = Byte.decode ("42"); |
| 12 | break; |
| 13 | } catch (NumberFormatException ignored) {} |
| 14 | } |
| 15 | |
| 16 | return b; |
| 17 | } |
| 18 | } |
| 19 |
Note:
See TracBrowser
for help on using the repository browser.
