2009-05-23 10:17:27 +02:00
|
|
|
/*
|
|
|
|
This is testing data for the GUI.
|
2009-05-23 13:26:04 +02:00
|
|
|
Used for testing GUI with various error styles reported by cppcheck.
|
2009-05-23 10:17:27 +02:00
|
|
|
Not meant to be compiled.
|
|
|
|
*/
|
|
|
|
|
2009-08-02 14:00:22 +02:00
|
|
|
#include <vector>
|
|
|
|
|
2009-05-23 10:17:27 +02:00
|
|
|
void unused()
|
|
|
|
{
|
2009-05-23 13:26:04 +02:00
|
|
|
int a = 15;
|
2009-05-23 10:17:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void f(char k)
|
|
|
|
{
|
|
|
|
delete k;
|
|
|
|
}
|
|
|
|
|
2009-08-02 14:00:22 +02:00
|
|
|
void possible_style()
|
|
|
|
{
|
2009-08-02 21:11:17 +02:00
|
|
|
std::list<int>::iterator it;
|
2009-08-03 00:18:15 +02:00
|
|
|
for (it = ab.begin(); it != ab.end(); it++)
|
2009-08-02 14:00:22 +02:00
|
|
|
;
|
|
|
|
}
|
|
|
|
|
2009-05-23 10:17:27 +02:00
|
|
|
int main()
|
|
|
|
{
|
|
|
|
char *b = new char[1];
|
|
|
|
char *a = new char[8];
|
|
|
|
if (a);
|
|
|
|
b = gets();
|
|
|
|
f(a);
|
2009-08-03 00:18:15 +02:00
|
|
|
possible_style();
|
2009-05-23 10:17:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|