annotate gcc/testsuite/gfortran.dg/global_vars_f90_init.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 ! { dg-additional-sources global_vars_f90_init_driver.c }
kono
parents:
diff changeset
3 module global_vars_f90_init
kono
parents:
diff changeset
4 use, intrinsic :: iso_c_binding, only: c_int
kono
parents:
diff changeset
5 implicit none
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 integer(c_int), bind(c, name='i') :: I = 2
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 contains
kono
parents:
diff changeset
10 subroutine test_globals() bind(c)
kono
parents:
diff changeset
11 ! the value of I is initialized above
kono
parents:
diff changeset
12 if(I .ne. 2) then
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
13 STOP 1
111
kono
parents:
diff changeset
14 endif
kono
parents:
diff changeset
15 end subroutine test_globals
kono
parents:
diff changeset
16 end module global_vars_f90_init