Files
codeql/java/ql/test/library-tests/successors/TestDeclarations/TestDeclarations.java
2018-08-30 10:48:05 +01:00

25 lines
309 B
Java

class TestDeclarations {
int declarationTests(int a) {
/* Some more complex flow control */
int b, c;
b = 0;
c = 0;
while(true)
{
b = 10;
if (a > 100)
{
c = 10;
b = c;
}
if (a == 10)
break;
if (a == 20)
return c;
}
int x,y;
x = 3;
y = 4;
return b;
}
}