diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog new file mode 100644 index 00000000000..c7eba302325 --- /dev/null +++ b/libjava/testsuite/ChangeLog @@ -0,0 +1,5 @@ +2004-01-22 Jeff Sturm + + 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 index 00000000000..fb5cc82e9b8 --- /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 00000000000..e3b083b1fa5 --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR13733.xfail @@ -0,0 +1 @@ +shouldfail