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
This commit is contained in:
parent
8755a8c7bb
commit
b24faf1e3b
5
libjava/testsuite/ChangeLog
Normal file
5
libjava/testsuite/ChangeLog
Normal file
@ -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.
|
10
libjava/testsuite/libjava.compile/PR13733.java
Normal file
10
libjava/testsuite/libjava.compile/PR13733.java
Normal file
@ -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
|
||||
}
|
||||
}
|
1
libjava/testsuite/libjava.compile/PR13733.xfail
Normal file
1
libjava/testsuite/libjava.compile/PR13733.xfail
Normal file
@ -0,0 +1 @@
|
||||
shouldfail
|
Loading…
Reference in New Issue
Block a user