This is the mail archive of the
mailing list for the Java project.
Patch: Add test for PR20418.
- From: David Daney <ddaney at avtrex dot com>
- To: java-patches at gcc dot gnu dot org
- Cc: Janis Johnson <janis187 at us dot ibm dot com>
- Date: Thu, 11 May 2006 10:36:14 -0700
- Subject: Patch: Add test for PR20418.
In my quest to get PR testsuite/24128 fixed, I need a test that produces
ice-on-invalid-code where the xfail fail contains 'shouldfail'. Since
the gcj developers have been very diligent, none of these exist.
Janis Johnson said in a message on gcc-patches@ that she would take a
look at the testsuite driver if we had a test case that exposed this
With the goal of getting the testsuite fixed I would like to add this
new test case. It is a test case for an open ice-on-invalid-code that
has no test in the testsuite. The code comes from the PR, but is
renamed to more closely match the testsuite naming conventions.
I would like to commit this as should fail (even though gcj currently
ices on it). Currently the testsuite will report this as a PASS. When
the testsuite driver is fixed we can change this to an XFAIL.
Tested on i686-pc-linux-gnu. The new test ICEs, but is reported as a
PASS (which is the whole point to this exercise).
OK to commit?
2006-05-11 David Daney <firstname.lastname@example.org>
* testsuite/libjava.compile/PR20418.java: New.
* testsuite/libjava.compile/PR20418.xfail: New.
--- testsuite/libjava.compile/PR20418.java (revision 0)
+++ testsuite/libjava.compile/PR20418.java (revision 0)
@@ -0,0 +1,7 @@
+public class PR20418
+ public static void main( String args)
+ java.io.File = new java.io.File( "junk");
--- testsuite/libjava.compile/PR20418.xfail (revision 0)
+++ testsuite/libjava.compile/PR20418.xfail (revision 0)
@@ -0,0 +1 @@