Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (29 sloc) 0.473 kb
/*
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;
for (it = ab.begin(); it != ab.end(); it++)
;
}
int main()
{
char *b = new char[1];
char *a = new char[8];
if (a);
b = gets();
f(a);
possible_style();
}
Jump to Line
Something went wrong with that request. Please try again.