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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-fcoarray=single" }
3
!
4
!
5
  type t
6
  end type t
7
  type t2
8
  end type t2
9
contains
10
elemental subroutine foo0(v) ! OK
11
  class(t), intent(in) :: v
12
end subroutine
13
 
14
elemental subroutine foo1(w) ! { dg-error "Argument 'w' of elemental procedure at .1. cannot have the ALLOCATABLE attribute" }
15
  class(t), allocatable, intent(in) :: w
16
end subroutine
17
 
18
elemental subroutine foo2(x) ! { dg-error "Argument 'x' of elemental procedure at .1. cannot have the POINTER attribute" }
19
  class(t), pointer, intent(in) :: x
20
end subroutine
21
 
22
elemental subroutine foo3(y) ! { dg-error "Coarray dummy argument 'y' at .1. to elemental procedure" }
23
  class(t2), intent(in) :: y[*]
24
end subroutine
25
 
26
elemental subroutine foo4(z) ! { dg-error "Argument 'z' of elemental procedure at .1. must be scalar" }
27
  class(t), intent(in) :: z(:)
28
end subroutine
29
 
30
end

powered by: WebSVN 2.1.0

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