mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 10:51:06 +07:00
66 lines
1.2 KiB
Java
66 lines
1.2 KiB
Java
class a {
|
|
static class ff { }
|
|
|
|
void f() {
|
|
<error descr="Continue outside of loop">continue;</error>
|
|
|
|
while (true) {
|
|
continue;
|
|
}
|
|
do { continue; } while (true);
|
|
|
|
switch (1) {
|
|
case 1: <error descr="Continue outside of loop">continue;</error>
|
|
}
|
|
|
|
for (;;) {
|
|
continue;
|
|
}
|
|
|
|
for (;;) {
|
|
new ff() {
|
|
void f() {
|
|
<error descr="Continue outside of loop">continue;</error>
|
|
}
|
|
};
|
|
continue;
|
|
}
|
|
|
|
while (true) {
|
|
class s {
|
|
{
|
|
<error descr="Continue outside of loop">continue;</error>
|
|
}
|
|
}
|
|
continue;
|
|
}
|
|
|
|
do {
|
|
class s {
|
|
{
|
|
<error descr="Continue outside of loop">continue;</error>
|
|
}
|
|
}
|
|
continue;
|
|
} while (true);
|
|
|
|
a:
|
|
if (2==4) {
|
|
for (;;) {
|
|
<error descr="Not a loop label: 'a'">continue a;</error>
|
|
}
|
|
}
|
|
|
|
a:
|
|
b:
|
|
for (;;) {
|
|
<error descr="Not a loop label: 'a'">continue a;</error>
|
|
}
|
|
|
|
int i = 0;
|
|
for (<error descr="Not a statement">i==0?7:8;</error> ; ) ;
|
|
for (<error descr="Invalid statement">if (i<0) i++;</error> ; ) ;
|
|
for (new ff(), new ff(); ; ) ;
|
|
for (<error descr="Invalid statement">class C { }</error>; true; ) ;
|
|
}
|
|
} |