#include #include class Class {}; int main() { const Class* dp = dynamic_cast(&typeid(Class)); // should return dp == NULL, printf("pointer: %p\n", dp); }