aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/interface_abstract_1.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/interface_abstract_1.f90')
-rw-r--r--gcc-4.9/gcc/testsuite/gfortran.dg/interface_abstract_1.f9022
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/interface_abstract_1.f90 b/gcc-4.9/gcc/testsuite/gfortran.dg/interface_abstract_1.f90
new file mode 100644
index 000000000..3b2934fd1
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gfortran.dg/interface_abstract_1.f90
@@ -0,0 +1,22 @@
+! { dg-do compile }
+!
+module mod_interf_abstract
+implicit none
+abstract interface :: one ! { dg-error "Syntax error in ABSTRACT INTERFACE statement" }
+end interface ! { dg-error "Expecting END MODULE statement" }
+
+abstract interface
+ subroutine two() bind(C)
+ end subroutine two
+ subroutine three() bind(C,name="three") ! { dg-error "NAME not allowed on BIND.C. for ABSTRACT INTERFACE" }
+ end subroutine three ! { dg-error "Expecting END INTERFACE statement" }
+ subroutine real() ! { dg-error "cannot be the same as an intrinsic type" }
+ end subroutine real
+end interface
+
+contains
+
+ subroutine sub() bind(C,name="subC")
+ end subroutine
+
+end module mod_interf_abstract