OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [elemental_pointer_1.f90] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! Tests the fix for pr20875.
3
! Note 12.7.1 "For a function, the result shall be scalar and shall not have the POINTER attribute."
4
MODULE Test
5
CONTAINS
6
  ELEMENTAL FUNCTION LL(I)
7
    INTEGER, INTENT(IN) :: I
8
    INTEGER :: LL
9
    POINTER  :: LL ! { dg-error " POINTER attribute conflicts with ELEMENTAL attribute" }
10
  END FUNCTION LL
11
END MODULE Test
12
 
13
! { dg-final { cleanup-modules "Test" } }

powered by: WebSVN 2.1.0

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