aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_dynamic_cast_2.in
blob: 634ff5c20f4f608b81e322bd64ee629a26bbe827 (plain)
1
2
3
4
5
6
7
8
9
10
#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);
}