re PR java/13733 (The result of an assignment operator is the LHS after assignment...
authorJeff Sturm <jsturm@one-point.com>
Fri, 23 Jan 2004 00:21:05 +0000 (00:21 +0000)
committerJeff Sturm <jsturm@gcc.gnu.org>
Fri, 23 Jan 2004 00:21:05 +0000 (00:21 +0000)
PR java/13733
* libjava.compile/PR13733.java: New file.
* libjava.compile/PR13733.xfail: New file.

From-SVN: r76389

libjava/testsuite/ChangeLog [new file with mode: 0644]
libjava/testsuite/libjava.compile/PR13733.java [new file with mode: 0644]
libjava/testsuite/libjava.compile/PR13733.xfail [new file with mode: 0644]

diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog
new file mode 100644 (file)
index 0000000..c7eba30
--- /dev/null
@@ -0,0 +1,5 @@
+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 --git a/libjava/testsuite/libjava.compile/PR13733.java b/libjava/testsuite/libjava.compile/PR13733.java
new file mode 100644 (file)
index 0000000..fb5cc82
--- /dev/null
@@ -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 --git a/libjava/testsuite/libjava.compile/PR13733.xfail b/libjava/testsuite/libjava.compile/PR13733.xfail
new file mode 100644 (file)
index 0000000..e3b083b
--- /dev/null
@@ -0,0 +1 @@
+shouldfail