OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [move_alloc_12.f90] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
! PR fortran/51948
4
!
5
  type :: t
6
  end type t
7
contains
8
  function func(x, y)
9
    class(t) :: y
10
    type(t), allocatable :: func
11
    type(t), allocatable :: x
12
 
13
    select type (y)
14
      type is(t)
15
        call move_alloc (x, func)
16
    end select
17
  end function
18
 
19
  function func2(x, y)
20
    class(t) :: y
21
    class(t), allocatable :: func2
22
    class(t), allocatable :: x
23
 
24
    block
25
    block
26
    select type (y)
27
      type is(t)
28
        call move_alloc (x, func2)
29
    end select
30
    end block
31
    end block
32
  end function
33
end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.