Home | History | Annotate | Download | only in jni
      1 #include <cstdio>
      2 #include "liba.h"
      3 int *global_ptr = &global; // Without this line, everything is fine
      4 int main()
      5 {
      6     func();
      7     printf("global = 0x%x (%p)%s\n", global, &global, ((global != 0x42)? ", ERROR!!!":""));
      8     return global != 0x42;
      9 }
     10 
     11