PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / constant_substring.f
blobf8a9f64630e4c788f443b39acb1086ff8c16e461
1 ! Simplify constant substring
2 ! { dg-do run }
3 ! { dg-options "-std=legacy" }
5 character*2 a
6 character*4 b
7 character*6 c
8 parameter (a="12")
9 parameter (b = a(1:2))
10 write (c,'("#",A,"#")') b
11 if (c .ne. '#12 #') STOP 1
12 end