Files
codeql/cpp/ql/test/library-tests/syntax-zoo/vacuous_dtor_call.cpp
2019-08-06 14:10:25 +02:00

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);