Test: Test that 'a=b; if (a==b)' is detected
This commit is contained in:
parent
f9e684d135
commit
13657ab127
|
@ -0,0 +1 @@
|
|||
[testif2\testif2.cpp:5]: The condition is always False
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
|
||||
void f()
|
||||
{
|
||||
a = b;
|
||||
if ( a != b )
|
||||
{
|
||||
// Something is very wrong
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue