aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile
diff options
context:
space:
mode:
authorRanjit Mathew <rmathew@hotmail.com>2005-03-10 18:57:01 +0000
committerRanjit Mathew <rmathew@gcc.gnu.org>2005-03-10 18:57:01 +0000
commitca1593fda439eef1997ac28568337b52bf32460c (patch)
treecb7a4ee140bc80bfc3125e99f0b8cc47083ed6dc /libjava/testsuite/libjava.compile
parent2743ba1c484ef25dcaf096a9083355667b5c1362 (diff)
downloadgcc-ca1593fda439eef1997ac28568337b52bf32460c.zip
gcc-ca1593fda439eef1997ac28568337b52bf32460c.tar.gz
gcc-ca1593fda439eef1997ac28568337b52bf32460c.tar.bz2
re PR java/20312 (No warning on bad method)
* testsuite/libjava.compile/PR20312.java: New file. * testsuite/libjava.compile/PR20312.xfail: Likewise. * testsuite/libjava.jacks/jacks.xfail: Remove 9.2-implicit-15. From-SVN: r96252
Diffstat (limited to 'libjava/testsuite/libjava.compile')
-rw-r--r--libjava/testsuite/libjava.compile/PR20312.java8
-rw-r--r--libjava/testsuite/libjava.compile/PR20312.xfail1
2 files changed, 9 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR20312.java b/libjava/testsuite/libjava.compile/PR20312.java
new file mode 100644
index 0000000..463172b
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR20312.java
@@ -0,0 +1,8 @@
+/* Can't throw what the overridden method doesn't. */
+public class PR20312
+{
+ public String toString( ) throws java.io.IOException
+ {
+ return "SNAFU";
+ }
+}
diff --git a/libjava/testsuite/libjava.compile/PR20312.xfail b/libjava/testsuite/libjava.compile/PR20312.xfail
new file mode 100644
index 0000000..e3b083b
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR20312.xfail
@@ -0,0 +1 @@
+shouldfail