1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* initialized by fortran */ int i; void test_globals(void); extern void abort(void); int main(int argc, char **argv) { /* verify that i has been initialized by f90 */ if(i != 2) abort(); test_globals(); return 0; }/* end main() */