cppcheck/gui/test.cpp

38 lines
476 B
C++
Raw Normal View History

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