Empty Block Check compilable UT input

This commit is contained in:
alexkravin 2014-12-02 18:38:49 +04:00 committed by Roman Ivanov
parent 7f0ec27579
commit 86219981cb
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class UpdateClass
char[] s = {'1', '2'};
int index = 2;
if (doSideEffect() == 1) {} //is not OK,
while ((r = in.read()) != 0) {} // is OK
while ((a = index - 1) != 0) {} // is OK
for (; index < s.length && s[index] != 'x'; index++) {} // is OK
if (a == 1) {} else {System.out.println("a");} // is not OK
switch (a) {} //warn