diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/array_constructor_28.f03')
-rw-r--r-- | gcc/testsuite/gfortran.dg/array_constructor_28.f03 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/array_constructor_28.f03 b/gcc/testsuite/gfortran.dg/array_constructor_28.f03 new file mode 100644 index 00000000000..382e49aef88 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/array_constructor_28.f03 @@ -0,0 +1,11 @@ +! { dg-do compile } +! { dg-options "-std=f2003" } + +! PR fortran/36492 +! Check that the error is still emitted for really incorrect constructor. + +type t + character (2) :: arr (2) = [ "a", "ab" ] ! { dg-error "Different CHARACTER" } +end type t + +end |