author | hannesw |
Tue, 22 Mar 2016 14:23:16 +0100 | |
changeset 36690 | 06b714373aa4 |
parent 26662 | 7cf828d7c8fc |
permissions | -rw-r--r-- |
10 | 1 |
/* |
26662
7cf828d7c8fc
8055080: Group 9d: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4408036 |
4 |
* @summary Compiler accepted "(i=2);" as a valid expession statement. |
|
5 |
* @author gafter |
|
6 |
* |
|
26662
7cf828d7c8fc
8055080: Group 9d: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=Parens2.out -XDrawDiagnostics Parens2.java |
10 | 8 |
*/ |
9 |
||
10 |
class Parens2 { |
|
11 |
void f() { |
|
12 |
int i; |
|
13 |
(i = 2); |
|
14 |
} |
|
15 |
} |