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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [class_25.f03] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
!
3
! PR [OOP] Compile-time errors on typed allocation and pointer function result assignment
4
!
5
! Contributed by Damian Rouson 
6
 
7
module m
8
 
9
  implicit none
10
 
11
  type foo
12
  end type
13
 
14
  type ,extends(foo) :: bar
15
  end type
16
 
17
contains
18
 
19
  function new_bar()
20
    class(foo) ,pointer :: new_bar
21
    allocate(bar :: new_bar)
22
  end function
23
 
24
end module
25
 
26
end
27
 
28
! { dg-final { cleanup-modules "m" } }

powered by: WebSVN 2.1.0

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