PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / assumed_rank_12.f90
blob873498f82d76099d06db24f627ed96d556e983ae
1 ! { dg-do run }
2 ! { dg-options "-fdump-tree-original" }
4 ! PR fortran/48820
6 ! Ensure that the value of scalars to assumed-rank arrays is
7 ! copied back - and everything happens in the correct order.
9 call sub(f())
10 contains
11 subroutine sub(x)
12 integer, pointer :: x(..)
13 end subroutine sub
14 function f() result(res)
15 integer, pointer :: res
16 end function f
17 end
19 ! { dg-final { scan-tree-dump " = f \\(\\);.*desc.0.dtype = .*;.*desc.0.data = .void .. D.*;.*sub \\(&desc.0\\);.*D.*= .integer.kind=4. .. desc.0.data;" "original" } }