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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
! PR fortran/34714 - ICE on invalid
4
! Testcase contributed by Martin Reinecke 
5
!
6
 
7
module foo
8
  type bar
9
    logical, pointer, dimension(:) :: baz
10
  end type
11
contains
12
 
13
function func1()
14
  type(bar) func1
15
  allocate(func1%baz(1))
16
end function
17
 
18
function func2()
19
  type(bar) func2
20
  allocate(func1%baz(1))      ! { dg-error "is not a variable" }
21
end function
22
 
23
end module foo
24
 
25
! { dg-final { cleanup-modules "foo" } }

powered by: WebSVN 2.1.0

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