c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / interface_abstract_1.f90
blob3b2934fd1cfe6bdfb3fca5cd2e492c6271cc927c
1 ! { dg-do compile }
3 module mod_interf_abstract
4 implicit none
5 abstract interface :: one ! { dg-error "Syntax error in ABSTRACT INTERFACE statement" }
6 end interface ! { dg-error "Expecting END MODULE statement" }
8 abstract interface
9 subroutine two() bind(C)
10 end subroutine two
11 subroutine three() bind(C,name="three") ! { dg-error "NAME not allowed on BIND.C. for ABSTRACT INTERFACE" }
12 end subroutine three ! { dg-error "Expecting END INTERFACE statement" }
13 subroutine real() ! { dg-error "cannot be the same as an intrinsic type" }
14 end subroutine real
15 end interface
17 contains
19 subroutine sub() bind(C,name="subC")
20 end subroutine
22 end module mod_interf_abstract