lto: Remove random_seed from section name.
[official-gcc.git] / gcc / testsuite / gfortran.dg / associate_22.f90
blob35daf89098df9f14c53c14bb5e6e1d8acc2d0152
1 ! { dg-do run }
2 program foo
4 implicit none
6 character(len=4) :: s
7 character(len=10) :: a
9 ! This works.
10 s = 'abc'
11 associate(t => s)
12 if (trim(t) /= 'abc') STOP 1
13 end associate
15 ! This failed.
16 associate(u => 'abc')
17 if (trim(u) /= 'abc') STOP 2
18 end associate
20 ! This failed.
21 a = s // 'abc'
22 associate(v => s // 'abc')
23 if (trim(v) /= trim(a)) STOP 3
24 end associate
26 ! This failed.
27 a = trim(s) // 'abc'
28 associate(w => trim(s) // 'abc')
29 if (trim(w) /= trim(a)) STOP 4
30 end associate
32 ! This failed.
33 associate(x => trim('abc'))
34 if (trim(x) /= 'abc') STOP 5
35 end associate
37 end program foo