mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
21
cpp/ql/test/examples/expressions/ConstructorCall.cpp
Normal file
21
cpp/ql/test/examples/expressions/ConstructorCall.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
class C {
|
||||
public:
|
||||
C(int i) {
|
||||
}
|
||||
};
|
||||
|
||||
class D {
|
||||
public:
|
||||
D() {
|
||||
}
|
||||
};
|
||||
|
||||
class E {
|
||||
public:
|
||||
};
|
||||
|
||||
void v(C *c, D *d, E *e) {
|
||||
c = new C(5);
|
||||
d = new D();
|
||||
e = new E();
|
||||
}
|
||||
Reference in New Issue
Block a user