This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: New test
- From: Jeff Sturm <jsturm at one-point dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 22 Jan 2004 23:16:41 -0500 (EST)
- Subject: FYI: New test
Applied to mainline.
2004-01-22 Jeff Sturm <jsturm@one-point.com>
PR java/13733
* libjava.compile/PR13733.java: New file.
* libjava.compile/PR13733.xfail: New file.
diff -Nup gcc-ssa/libjava/testsuite/libjava.compile/PR13733.java gcc/libjava/testsuite/libjava.compile/PR13733.java
--- gcc-ssa/libjava/testsuite/libjava.compile/PR13733.java 1969-12-31 19:00:00.000000000 -0500
+++ gcc/libjava/testsuite/libjava.compile/PR13733.java 2004-01-22 18:54:34.000000000 -0500
@@ -0,0 +1,10 @@
+// 15.26: "The type of an assignment expression is the type of the variable"
+// (LHS).
+class PR13733 {
+ String a, c = "";
+ Object b;
+
+ void bug() {
+ a = (b = c); // invalid without cast
+ }
+}
diff -Nup gcc-ssa/libjava/testsuite/libjava.compile/PR13733.xfail gcc/libjava/testsuite/libjava.compile/PR13733.xfail
--- gcc-ssa/libjava/testsuite/libjava.compile/PR13733.xfail 1969-12-31 19:00:00.000000000 -0500
+++ gcc/libjava/testsuite/libjava.compile/PR13733.xfail 2004-01-22 18:57:49.000000000 -0500
@@ -0,0 +1 @@
+shouldfail