cppcheck/gui/test.cpp

37 lines
471 B
C++

/*
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()
{
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();
}