镜像自地址
https://github.com/eclipse-aspectj/aspectj.git
已同步 2024-08-26 17:58:43 +02:00
12 行
402 B
Java
12 行
402 B
Java
|
|
|
|
/** @testcase PR#722 loop expressions not declarations */
|
|
public class DeclarationsInLoopsCE {
|
|
void method() {
|
|
boolean b = true;
|
|
for (;b;) int j = 0; // CE 7 illegal start of expression, not a statement
|
|
while (b) int k = 0; // CE 8 illegal start of expression, not a statement
|
|
do int l = 0; while (b); // CE 9 illegal start of expression, not a statement
|
|
}
|
|
}
|