mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
29 lines
270 B
C++
29 lines
270 B
C++
class A {
|
|
public:
|
|
A() {}
|
|
};
|
|
|
|
A a;
|
|
void f() {}
|
|
|
|
|
|
class Test {
|
|
A aa;
|
|
|
|
void fa() {}
|
|
|
|
void test() {
|
|
void (*fptr)();
|
|
void (Test::*mfptr)();
|
|
void *ptr;
|
|
|
|
ptr = &a;
|
|
ptr = &aa;
|
|
|
|
fptr = f; // same as below
|
|
fptr = &f; // same as above
|
|
mfptr = &Test::fa;
|
|
|
|
}
|
|
};
|