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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [elemental_result_1.f90] - Blame information for rev 868

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

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! Tests the fix for PR20874 in which array valued elemental
3
! functions were permitted.
4
!
5
! Contributed by Joost VandeVondele  
6
!
7
MODULE Test
8
CONTAINS
9
  ELEMENTAL FUNCTION LL(I) ! { dg-error "must have a scalar result" }
10
    INTEGER, INTENT(IN) :: I
11
    INTEGER  :: LL(2)
12
  END FUNCTION LL
13
!
14
! This was already OK.
15
!
16
  ELEMENTAL FUNCTION MM(I)
17
    INTEGER, INTENT(IN) :: I
18
    INTEGER, pointer  :: MM ! { dg-error "conflicts with ELEMENTAL" }
19
  END FUNCTION MM
20
END MODULE Test
21
 

powered by: WebSVN 2.1.0

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