Home | History | Annotate | Download | only in jni
      1 /* This file should be compiled without exceptions and with RTTI */
      2 #ifdef __EXCEPTIONS
      3 #error This source file SHOULD NOT be built with -fexceptions!
      4 #endif
      5 
      6 #include <typeinfo>
      7 #include <stdio.h>
      8 
      9 class Foo { int x; };
     10 
     11 int main(void) {
     12     printf("%p\n", &typeid(Foo)); // will fail without -frtti
     13     return 0;
     14 }
     15