mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 13:25:45 +02:00
Added tests for statement has not effect checker
This commit is contained in:
parent
823deee35f
commit
6d88bba776
1 changed files with 15 additions and 0 deletions
|
@ -105,4 +105,19 @@ public class StatementHasNoEffectCheckerTest extends CheckerTestCase {
|
||||||
checkErrorLine(f1, 3);
|
checkErrorLine(f1, 3);
|
||||||
checkErrorLine(f2, 4);
|
checkErrorLine(f2, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// main() {
|
||||||
|
// for (a=b;a;a=a->next);
|
||||||
|
// }
|
||||||
|
public void testForTestExpression() {
|
||||||
|
loadCodeAndRun(getAboveComment());
|
||||||
|
checkNoErrors();
|
||||||
|
}
|
||||||
|
// main() {
|
||||||
|
// a = foo(1) || a = foo(2);
|
||||||
|
// }
|
||||||
|
public void testLazyEvalHack() {
|
||||||
|
loadCodeAndRun(getAboveComment());
|
||||||
|
checkNoErrors();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue