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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [typebound_proc_2.f90] - Blame information for rev 302

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! { dg-options "-std=f95" }
3
 
4
! Type-bound procedures
5
! Test that F95 does not allow type-bound procedures
6
 
7
MODULE testmod
8
  IMPLICIT NONE
9
 
10
  TYPE t
11
    INTEGER :: x
12
  CONTAINS ! { dg-error "Fortran 2003" }
13
    PROCEDURE proc1 ! { dg-error "Fortran 2003" }
14
    PROCEDURE :: proc2 => p2 ! { dg-error "Fortran 2003" }
15
  END TYPE t
16
 
17
CONTAINS
18
 
19
  SUBROUTINE proc1 (me)
20
    IMPLICIT NONE
21
    TYPE(t1) :: me
22
  END SUBROUTINE proc1
23
 
24
  REAL FUNCTION proc2 (me, x)
25
    IMPLICIT NONE
26
    TYPE(t1) :: me
27
    REAL :: x
28
    proc2 = x / 2
29
  END FUNCTION proc2
30
 
31
END MODULE testmod
32
 
33
! { dg-final { cleanup-modules "testmod" } }
34
! { dg-excess-errors "no IMPLICIT type" }

powered by: WebSVN 2.1.0

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