summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/global_vars_f90_init_driver.c
blob: 7869c83f71254d3269404331aac56c38abbc7521 (plain)
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() */