gcc/fortran/
[official-gcc.git] / gcc / testsuite / gfortran.dg / blockdata_7.f90
blobb7de9642cd5f00d8b8f747dde3b94bb3b185f7c3
1 ! { dg-do compile }
3 ! PR fortran/55444
5 ! Contributed by Henrik Holst
7 BLOCKDATA
8 ! USE ISO_C_BINDING, ONLY: C_INT, C_FLOAT ! WORKS
9 USE :: ISO_C_BINDING ! FAILS
10 INTEGER(C_INT) X
11 REAL(C_FLOAT) Y
12 COMMON /FOO/ X,Y
13 BIND(C,NAME='fortranStuff') /FOO/
14 DATA X /1/
15 DATA Y /2.0/
16 END BLOCKDATA