emscripten/tests/core/test_dynamic_cast_2.in

11 строки
198 B
Plaintext

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