This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: test for PR 3417
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 18 Dec 2001 09:40:53 -0700
- Subject: Patch: FYI: test for PR 3417
- Reply-to: tromey at redhat dot com
I'm checking this in.
This is the test case from PR 3417.
We should fail to compile this, but currently we don't.
I'm testing a patch for the bug. I'll submit it as soon as the
testing is done.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
For PR java/3417:
* libjava.compile/PR3417.xfail: New file.
* libjava.compile/PR3417.java: New file.
Index: libjava.compile/PR3417.java
===================================================================
RCS file: PR3417.java
diff -N PR3417.java
--- /dev/null Tue May 5 13:32:27 1998
+++ libjava.compile/PR3417.java Tue Dec 18 08:32:21 2001
@@ -0,0 +1,6 @@
+// Make sure that assignment conversion checks are done for `return'.
+
+class PR3417
+{
+ char func (int i) { return i; }
+}
Index: libjava.compile/PR3417.xfail
===================================================================
RCS file: PR3417.xfail
diff -N PR3417.xfail
--- /dev/null Tue May 5 13:32:27 1998
+++ libjava.compile/PR3417.xfail Tue Dec 18 08:32:21 2001
@@ -0,0 +1 @@
+shouldfail