diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/array_constructor_29.f03')
-rw-r--r-- | gcc/testsuite/gfortran.dg/array_constructor_29.f03 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/array_constructor_29.f03 b/gcc/testsuite/gfortran.dg/array_constructor_29.f03 new file mode 100644 index 000000000..03534fa81 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/array_constructor_29.f03 @@ -0,0 +1,13 @@ +! { dg-do compile } + +! PR fortran/36492 +! Similar to the ICE-test, but now test it works for real constants. + +implicit none + +integer, parameter :: a = 42 +type t + character (a) :: arr (1) = [ "a" ] +end type t + +end |