summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/test_bind_c_parens.f03
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/test_bind_c_parens.f03')
-rw-r--r--gcc/testsuite/gfortran.dg/test_bind_c_parens.f037
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/test_bind_c_parens.f03 b/gcc/testsuite/gfortran.dg/test_bind_c_parens.f03
new file mode 100644
index 000000000..ee7b6a8ac
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/test_bind_c_parens.f03
@@ -0,0 +1,7 @@
+! { dg-do compile }
+module test_bind_c_parens
+ interface
+ subroutine sub bind(c) ! { dg-error "Missing required parentheses" }
+ end subroutine sub ! { dg-error "Expecting END INTERFACE" }
+ end interface
+end module test_bind_c_parens