mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
18 lines
201 B
C++
18 lines
201 B
C++
|
|
typedef void (*ft)(void *);
|
|
int f(ft fp);
|
|
|
|
class C {};
|
|
|
|
template <typename T>
|
|
struct S {
|
|
static void m(void *t) {
|
|
static_cast<T*>(t)->~T();
|
|
}
|
|
};
|
|
|
|
void g() {
|
|
int i = f(S<C>::m);
|
|
}
|
|
|