diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/array_constructor_27.f03')
-rw-r--r-- | gcc/testsuite/gfortran.dg/array_constructor_27.f03 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/array_constructor_27.f03 b/gcc/testsuite/gfortran.dg/array_constructor_27.f03 new file mode 100644 index 000000000..8068364ce --- /dev/null +++ b/gcc/testsuite/gfortran.dg/array_constructor_27.f03 @@ -0,0 +1,16 @@ +! { dg-do compile } +! { dg-options "-std=gnu" } + +! PR fortran/36492 +! Check for incorrect error message with -std=f2003. +! Reduced test triggering the ICE mentioned in comment #4, PR 36492. + +implicit none + +type t + character (a) :: arr (1) = [ "a" ] + ! { dg-error "no IMPLICIT type" "" { target *-*-* } 11 } + ! { dg-error "specification expression" "" { target *-*-* } 11 } +end type t + +end |