Home | History | Annotate | Download | only in jni
      1 /* This file should be compiled with exceptions and without RTTI */
      2 #ifndef __EXCEPTIONS
      3 #error This source file SHOULD 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