2 ! { dg-options "-O2 -fdump-tree-original" }
4 ! Check the fix for PR31608 in all it's various manifestations:)
5 ! Contributed by Richard Guenther <rguenth@gcc.gnu.org>
7 character(len
=1) :: string
= "z"
8 integer :: i(1) = (/100/)
10 print *, transfer(((transfer(string
,"x",1))), "x",1)
11 print *, transfer(char(i
), "x")
12 print *, Upper ("abcdefg")
14 Character (len
=20) Function Up (string
)
15 Character(len
=*) string
17 Up
= transfer(achar(iachar(transfer(string
,chr
,1))), "x")
20 Character (len
=20) Function Upper (string
)
21 Character(len
=*) string
23 transfer(merge(transfer(string
,"x",len(string
)), &
28 ! The sign that all is well is that [S.6][1] appears twice.
29 ! Platform dependent variations are [S$6][1], [__S_6][1], [S___6][1]
30 ! { dg-final { scan-tree-dump-times "6\\\]\\\[1\\\]" 2 "original" } }