2008-07-06 Kai Tietz <kai.tietz@onevision.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / com_block_driver.f90
blob691a40fe59d1989e33107800b3287c9ca6359a40
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
36 ! { dg-final { cleanup-modules "mycommodule comblocktests" } }