Cleanup old tests

This commit is contained in:
Daniel Marjamäki 2008-02-17 11:57:10 +00:00
parent 6080808878
commit 89061edbba
25 changed files with 0 additions and 132 deletions

View File

@ -1,2 +0,0 @@
[testdangerousfunc1\testdangerousfunc1.cpp:4]: Found 'gets'. You should use 'fgets' instead
[testdangerousfunc1\testdangerousfunc1.cpp:7]: Found 'scanf'. You should use 'fgets' instead

View File

@ -1,9 +0,0 @@
void f()
{
gets(str);
scanf("%f", &f);
scanf("%s", str);
}

View File

View File

@ -1,8 +0,0 @@
void f()
{
if (p)
delete p;
}

View File

View File

@ -1,2 +0,0 @@
#include "testh1.h"

View File

@ -1,14 +0,0 @@
// This is a header so there should be no implementation here..
void f()
{ }
class clKalle
{
public:
clKalle()
{ }
};

View File

View File

View File

@ -1,4 +0,0 @@
#include "testh2.h"

View File

@ -1,7 +0,0 @@
#include "emptyh.h"
class clKalle
{
};

View File

View File

@ -1,7 +0,0 @@
#include "h2.h"
class class1 : class2
{ };

View File

@ -1,4 +0,0 @@
class class2
{ };

View File

@ -1,2 +0,0 @@
#include "h1.h"

View File

View File

@ -1,8 +0,0 @@
#include "testh5.h"
void f(E1 e1)
{
}

View File

@ -1,4 +0,0 @@
enum E1 {a,b,c};

View File

View File

@ -1,5 +0,0 @@
#include "testh6.h"
onoff a;

View File

@ -1,3 +0,0 @@
typedef enum { on, off } onoff;

View File

@ -1,2 +0,0 @@
[testmemset1\testmemset1.cpp:28]: Using 'memset' on class.
[testmemset1\testmemset1.cpp:34]: Using 'memset' on struct that contains a 'std::string'

View File

@ -1,36 +0,0 @@
class clKalle
{
private:
int i;
public:
clKalle();
};
struct S1
{
char *str;
}
struct S2
{
std::string str;
}
clKalle::clKalle()
{
i = 0;
}
void f()
{
clKalle *kalle = new clKalle;
memset(kalle, 0, sizeof(clKalle));
S1 s1;
memset(&s1, 0, sizeof(S1));
S2 s2;
memset(&s2, 0, sizeof(S2));
}

View File

View File

@ -1,15 +0,0 @@
void f(char ch)
{
if (ch>='0' && ch<='9')
{
}
if (*p>='0' && *p<='9')
{
}
}