mirror of
https://github.com/rizsotto/scan-build.git
synced 2025-12-21 12:19:29 +01:00
update functional test cases
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#include "foo.h"
|
||||
|
||||
namespace acme
|
||||
{
|
||||
|
||||
void t2(int i);
|
||||
|
||||
void t1()
|
||||
{
|
||||
for (int i = 0; i < 100; ++i)
|
||||
{
|
||||
if (98 == i)
|
||||
{
|
||||
t2(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void t2(int i)
|
||||
{
|
||||
if (9 == i)
|
||||
{
|
||||
int k = i + 9;
|
||||
--k;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user