diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/char_result_18.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/char_result_18.f90 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/char_result_18.f90 b/gcc/testsuite/gfortran.dg/char_result_18.f90 new file mode 100644 index 00000000000..f47c88ad4b3 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/char_result_18.f90 @@ -0,0 +1,10 @@ +! { dg-do compile } +! +! Tests the fix for PR80657. +! +! Contributed by Vittorio Zecca <zeccav@gmail.com> +! +function f(x) +implicit character(len(f)) (x) ! { dg-error "Self reference in character length" } +character(len(x)) f +end |