1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 329497 - checker for no break at the end of case

This commit is contained in:
Alena Laskavaia 2010-12-01 02:41:42 +00:00
parent 83ea511e24
commit 49067335fd

View file

@ -426,4 +426,17 @@ public class CaseBreakCheckerTest extends CheckerTestCase {
CaseBreakChecker.PARAM_EMPTY_CASE);
pref.setValue(val);
}
// void foo(int a) {
// switch( a ) {
// case 1:
// while (a--)
// break;
// }
// }
public void testEmptyLastCaseWithLoopBreak() {
loadCodeAndRun(getAboveComment());
checkNoErrors(); // FALSE NEGATIVE
//checkErrorLine(3);
}
}