diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/literal_character_constant_1.inc')
-rw-r--r-- | gcc/testsuite/gfortran.dg/literal_character_constant_1.inc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/literal_character_constant_1.inc b/gcc/testsuite/gfortran.dg/literal_character_constant_1.inc new file mode 100644 index 00000000000..ba24966b72a --- /dev/null +++ b/gcc/testsuite/gfortran.dg/literal_character_constant_1.inc @@ -0,0 +1,20 @@ +C fixed-form literal character constant with continuation line padding test +C PR fortran/25486 + program a + character(len=90) c + character(90) :: fil +c A tab is between 8 and 9. + c = '1234567 + &8 9' + write(fil,'(a)') c +#ifdef LL_NONE + if(fil.ne. "12345678 9") + & call abort +#else + if(fil.ne. + &"1234567 8 9" + &) + & call abort +#endif + end + |