Merge from mainline.
[official-gcc.git] / gcc / testsuite / gfortran.dg / extended_char_comparison_1.f
blob311567dceb0c2f4b5d1f57c4d4d8568a4d6a9cf8
1 ! { dg-do run }
2 ! PR 27715 - the front end and the library used to have different ideas
3 ! about ordering for characters whose encoding is above 127.
5 program main
6 character*1 c1, c2
7 logical a1, a2
8 c1 = 'ç';
9 c2 = 'c';
10 a1 = c1 > c2;
11 call setval(c1, c2)
12 a2 = c1 > c2
13 if (a1 .neqv. a2) call abort
14 end
16 subroutine setval(c1, c2)
17 character*1 c1, c2
18 c1 = 'ç';
19 c2 = 'c';
20 end