Files
codeql/cpp/ql/test/library-tests/functions/functions/functions.cpp
2018-08-02 17:53:23 +01:00

34 lines
376 B
C++

void f(int a, int b) {
bool c = a==b;
}
void g();
struct A {
void af() {
}
void ag();
};
void g() {
A a;
a.ag();
}
class Name {
const char* s;
};
class Table {
Name* p;
int sz;
public:
Table(int s=15) { p = new Name[sz=s]; } // constructor
~Table() { delete[] p; }
Name* lookup (const char*);
bool insert(Name*);
};