comparison gcc/testsuite/gfortran.dg/achar_4.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
4 ! charlen. 4 ! charlen.
5 ! 5 !
6 ! The code comes from http://www.star.le.ac.uk/~cgp/fortran.html (by Clive Page) 6 ! The code comes from http://www.star.le.ac.uk/~cgp/fortran.html (by Clive Page)
7 ! Reported by Thomas Koenig <tkoenig@gcc.gnu.org> 7 ! Reported by Thomas Koenig <tkoenig@gcc.gnu.org>
8 ! 8 !
9 if (any (Up ("AbCdEfGhIjKlM") .ne. (/"ABCDEFGHIJKLM"/))) call abort () 9 if (any (Up ("AbCdEfGhIjKlM") .ne. (/"ABCDEFGHIJKLM"/))) STOP 1
10 contains 10 contains
11 Character (len=20) Function Up (string) 11 Character (len=20) Function Up (string)
12 Character(len=*) string 12 Character(len=*) string
13 Up = & 13 Up = &
14 transfer(merge(achar(iachar(transfer(string,"x",len(string)))- & 14 transfer(merge(achar(iachar(transfer(string,"x",len(string)))- &