diff options
Diffstat (limited to 'libjava/testsuite/libjava.lang/pr13107.java')
-rw-r--r-- | libjava/testsuite/libjava.lang/pr13107.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.lang/pr13107.java b/libjava/testsuite/libjava.lang/pr13107.java new file mode 100644 index 0000000..06d4c54 --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr13107.java @@ -0,0 +1,25 @@ +class pr13107 +{ + public static void main(String[] args) + { + for (int i = 0; i < 1; i++) { + String s = "A"; + + if (s == "A") + continue; + + try{ + try{ + System.out.println(s); + } + finally{ + if (s != "A") + throw new Error(); + } + } + catch(Exception e){ + s = "B"; + } + } + } +} |