diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/bind_c_usage_5.f03')
-rw-r--r-- | gcc/testsuite/gfortran.dg/bind_c_usage_5.f03 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/bind_c_usage_5.f03 b/gcc/testsuite/gfortran.dg/bind_c_usage_5.f03 new file mode 100644 index 000000000..95afa010f --- /dev/null +++ b/gcc/testsuite/gfortran.dg/bind_c_usage_5.f03 @@ -0,0 +1,8 @@ +! { dg-do compile } +module bind_c_usage_5 +use, intrinsic :: iso_c_binding + +bind(c) c3, c4 +integer(c_int), bind(c) :: c3 ! { dg-error "Duplicate BIND attribute" } +integer(c_int) :: c4 +end module bind_c_usage_5 |