1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Added tests for statement has not effect checker

This commit is contained in:
Alena Laskavaia 2010-05-11 02:37:29 +00:00
parent 823deee35f
commit 6d88bba776

View file

@ -105,4 +105,19 @@ public class StatementHasNoEffectCheckerTest extends CheckerTestCase {
checkErrorLine(f1, 3);
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();
}
}