mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
12 lines
220 B
C++
12 lines
220 B
C++
struct HasDestructor {
|
|
~HasDestructor();
|
|
};
|
|
|
|
template<typename T>
|
|
void callDestructor(T *x) {
|
|
x->~T();
|
|
}
|
|
|
|
template void callDestructor<int>(int *x);
|
|
template void callDestructor<HasDestructor>(HasDestructor *x);
|