author | sogoel |
Fri, 12 Sep 2014 17:05:18 -0700 | |
changeset 26662 | 7cf828d7c8fc |
parent 5520 | 86e4b9a9da40 |
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 |
} |