Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/equiv_constraint_bind_c.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! Testcase for using EQUIVALENCE with BIND(C) ! See PR fortran/39239 ! { dg-do compile } module m use iso_c_binding implicit none integer(c_int) :: i1, i2 bind(C) :: i2 equivalence(i1,i2) ! { dg-error "EQUIVALENCE attribute conflicts with BIND" } end module m