diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 07a20e140cd..4622462fec3 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-02-12 Anthony Green + + * libjava.compile/assignment.java: New file. + 2000-02-12 Anthony Green * libjava.compile/inner_data.java: New file. diff --git a/libjava/testsuite/libjava.compile/assignment.java b/libjava/testsuite/libjava.compile/assignment.java new file mode 100644 index 00000000000..ec05f73a503 --- /dev/null +++ b/libjava/testsuite/libjava.compile/assignment.java @@ -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; + } +} +