This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]