diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/initialization_28.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/initialization_28.f90 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/initialization_28.f90 b/gcc/testsuite/gfortran.dg/initialization_28.f90 new file mode 100644 index 000000000..f5330534a --- /dev/null +++ b/gcc/testsuite/gfortran.dg/initialization_28.f90 @@ -0,0 +1,9 @@ +! { dg-do compile } +! +! PR fortran/50163 +! +! Contributed by Philip Mason +! +character(len=2) :: xx ='aa' +integer :: iloc=index(xx,'bb') ! { dg-error "has not been declared or is a variable" } +end |