summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/global_vars_c_init_driver.c
blob: b58c2c966614a486ad1ea2e16aedf4fabccc22af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
int i = 2;
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() */