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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [finalize_2.f03] - Blame information for rev 801

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 "-std=f2003" }
3
 
4
! Parsing of finalizer procedure definitions.
5
! Check empty CONTAINS errors out for F2003.
6
 
7
MODULE final_type
8
  IMPLICIT NONE
9
 
10
  TYPE :: mytype
11
    INTEGER, ALLOCATABLE :: fooarr(:)
12
    REAL :: foobar
13
  CONTAINS
14
  END TYPE mytype ! { dg-error "Fortran 2008" }
15
 
16
END MODULE final_type
17
 
18
PROGRAM finalizer
19
  IMPLICIT NONE
20
  ! Do nothing here
21
END PROGRAM finalizer
22
 
23
! { dg-final { cleanup-modules "final_type" } }

powered by: WebSVN 2.1.0

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