aarch64: Add vector floating point extend pattern [PR113880, PR113869]
[official-gcc.git] / gcc / testsuite / gfortran.dg / transfer_simplify_12.f90
blob344b3ae122960782b84544d18424e6e72af4adde
1 ! { dg-do run }
2 ! { dg-options "-O -std=legacy" }
4 ! Test fixes for some findings while resolving PR fortran/89077
6 program test
7 implicit none
8 integer :: i
9 character(*) ,parameter :: s = 'abcdef' ! Length will be 6
10 character(*) ,parameter :: h = 6Habcdef ! Length will be 8 (Hollerith!)
11 character(10) ,parameter :: k = 6Habcdef
12 character(10) ,parameter :: t = transfer (s, s)
13 character(10) ,save :: u = transfer (s, s)
14 character(10) ,parameter :: v = transfer (h, h)
15 character(10) ,save :: w = transfer (h, h)
16 character(10) ,parameter :: x = transfer ([(s(i:i),i=len(s),1,-1)], s)
17 character(10) ,save :: y = transfer ([(s(i:i),i=len(s),1,-1)], s)
18 if (len (h) /= 8) stop 1
19 if (h /= s) stop 2
20 if (k /= s) stop 3
21 if (t /= s) stop 4
22 if (u /= s) stop 5
23 if (v /= s) stop 6
24 if (w /= s) stop 7
25 if (x /= "fedcba") stop 8
26 if (y /= x) stop 9
27 end program test