2015-07-03 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / com_block_driver.f90
blob0445635c881623858ceba0697bac272794c1a5f6
1 ! { dg-do run }
2 module myComModule
3 use, intrinsic :: iso_c_binding
5 common /COM2/ R2, S2
6 real(c_double) :: r2
7 real(c_double) :: s2
8 bind(c) :: /COM2/
10 end module myComModule
12 module comBlockTests
13 use, intrinsic :: iso_c_binding
14 use myComModule
16 implicit none
18 common /COM/ R, S
19 real(c_double) :: r
20 real(c_double) :: s
21 bind(c) :: /COM/
23 contains
25 subroutine testTypes()
26 implicit none
27 end subroutine testTypes
28 end module comBlockTests
30 program comBlockDriver
31 use comBlockTests
33 call testTypes()
34 end program comBlockDriver