aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/testsuite/libjava.compile')
-rw-r--r--libjava/testsuite/libjava.compile/PR13733.java10
-rw-r--r--libjava/testsuite/libjava.compile/PR13733.xfail1
2 files changed, 11 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR13733.java b/libjava/testsuite/libjava.compile/PR13733.java
new file mode 100644
index 0000000..fb5cc82
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR13733.java
@@ -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
index 0000000..e3b083b
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR13733.xfail
@@ -0,0 +1 @@
+shouldfail