Fix compilation failure with C++98 compilers
[official-gcc.git] / gcc / testsuite / gfortran.dg / elemental_bind_c.f90
blobf966d2b5ff55065c7dcd15b905d325000882a94c
1 ! { dg-do compile }
3 ! PR fortran/33412
5 elemental subroutine a() bind(c) ! { dg-error "BIND.C. attribute conflicts with ELEMENTAL" }
6 end subroutine a ! { dg-error "Expecting END PROGRAM" }
8 elemental function b() bind(c) ! { dg-error "BIND.C. attribute conflicts with ELEMENTAL" }
9 end function b ! { dg-error "Expecting END PROGRAM" }
10 end