From ad1bcde7a197e9025262b073dbeb3c1a95316ddd Mon Sep 17 00:00:00 2001 From: jsturm Date: Fri, 23 Jan 2004 00:21:05 +0000 Subject: PR java/13733 * libjava.compile/PR13733.java: New file. * libjava.compile/PR13733.xfail: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76389 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/testsuite/libjava.compile/PR13733.java | 10 ++++++++++ libjava/testsuite/libjava.compile/PR13733.xfail | 1 + 2 files changed, 11 insertions(+) create mode 100644 libjava/testsuite/libjava.compile/PR13733.java create mode 100644 libjava/testsuite/libjava.compile/PR13733.xfail (limited to 'libjava/testsuite/libjava.compile') 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 -- cgit v1.2.3