aarch64: Require SVE2 and/or SME2 for SVE FAMINMAX intrinsics
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr85975.f90
blob9e526c2c06b6e3c5a47d9ac7ced05dd681cb4fc8
1 ! { dg-do run }
2 ! PR fortran/85976
3 ! Original code from Stephan Kramer <stephan.kramer at imperial dot ac.uk>
4 program foo
6 implicit none
8 call bar(2, 3, 5, 7)
10 contains
12 subroutine bar(k, l, m, n)
14 integer, intent(in) :: k, l, m, n
15 real :: a(k), b(k,l), c(k,l,m), d(k,l,m,n)
17 if (size(spread(A, 1, 1)) /= k) stop 1
18 if (size(spread(b, 1, 1)) /= k * l) stop 2
19 if (size(spread(c, 1, 1)) /= k * l * m) stop 3
20 if (size(spread(d, 1, 1)) /= k * l * m * n) stop 4
22 end subroutine
24 end program