Test: Test that 'a=b; if (a==b)' is detected

This commit is contained in:
Daniel Marjamäki 2007-06-02 16:30:35 +00:00
parent f9e684d135
commit 13657ab127
2 changed files with 11 additions and 0 deletions

1
testif2/err.msg Normal file
View File

@ -0,0 +1 @@
[testif2\testif2.cpp:5]: The condition is always False

10
testif2/testif2.cpp Normal file
View File

@ -0,0 +1,10 @@
void f()
{
a = b;
if ( a != b )
{
// Something is very wrong
}
}