mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 329497 - checker for no break at the end of case
This commit is contained in:
parent
83ea511e24
commit
49067335fd
1 changed files with 13 additions and 0 deletions
|
@ -426,4 +426,17 @@ public class CaseBreakCheckerTest extends CheckerTestCase {
|
||||||
CaseBreakChecker.PARAM_EMPTY_CASE);
|
CaseBreakChecker.PARAM_EMPTY_CASE);
|
||||||
pref.setValue(val);
|
pref.setValue(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// void foo(int a) {
|
||||||
|
// switch( a ) {
|
||||||
|
// case 1:
|
||||||
|
// while (a--)
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
public void testEmptyLastCaseWithLoopBreak() {
|
||||||
|
loadCodeAndRun(getAboveComment());
|
||||||
|
checkNoErrors(); // FALSE NEGATIVE
|
||||||
|
//checkErrorLine(3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue