diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/equiv_constraint_1.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/equiv_constraint_1.f90 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/equiv_constraint_1.f90 b/gcc/testsuite/gfortran.dg/equiv_constraint_1.f90 new file mode 100644 index 000000000..75c3aa813 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/equiv_constraint_1.f90 @@ -0,0 +1,10 @@ +! { dg-do compile } +! { dg-options "-std=f95" } +! PR20901 - F95 constrains mixing of types in equivalence. +! Contributed by Joost VandeVondele <jv244@cam.ac.uk> + character(len=4) :: a + integer :: i + equivalence(a,i) ! { dg-error "in default CHARACTER EQUIVALENCE statement at" } + END + + |