aarch64: Add vector floating point extend pattern [PR113880, PR113869]
[official-gcc.git] / gcc / testsuite / gfortran.dg / no-automatic.f90
blob42baf4d2e0c0c8a3b4f2e307ab7b6c2656fd9dd7
1 ! { dg-do run }
2 ! { dg-options "-fno-automatic" }
4 ! PR fortran/37835
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>.
7 subroutine foo(n)
8 integer :: n
9 type t
10 integer :: i = 42
11 end type t
12 type(t) :: myt
13 if(n==1) myt%i = 2
14 print *, myt%i
15 if (n > 1 .and. myt%i /= 2) stop 1
16 end subroutine foo
18 call foo(1)
19 call foo(2)
20 end