diff options
author | Jeff Sturm <jsturm@one-point.com> | 2004-01-23 00:21:05 +0000 |
---|---|---|
committer | Jeff Sturm <jsturm@gcc.gnu.org> | 2004-01-23 00:21:05 +0000 |
commit | b24faf1e3b91639f4d99700f6ed3deeea359dbb2 (patch) | |
tree | 78bd91151d68edb2374f2fb17bd8fbff90f588a6 /libjava/testsuite/libjava.compile/PR13733.java | |
parent | 8755a8c7bb4a6da9e9280b70615a0871c48ff259 (diff) | |
download | gcc-b24faf1e3b91639f4d99700f6ed3deeea359dbb2.zip gcc-b24faf1e3b91639f4d99700f6ed3deeea359dbb2.tar.gz gcc-b24faf1e3b91639f4d99700f6ed3deeea359dbb2.tar.bz2 |
re PR java/13733 (The result of an assignment operator is the LHS after assignment, not the RHS)
PR java/13733
* libjava.compile/PR13733.java: New file.
* libjava.compile/PR13733.xfail: New file.
From-SVN: r76389
Diffstat (limited to 'libjava/testsuite/libjava.compile/PR13733.java')
-rw-r--r-- | libjava/testsuite/libjava.compile/PR13733.java | 10 |
1 files changed, 10 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 + } +} |