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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [gfortran.dg/] [finalize_3.f03] - 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
 
3
! Parsing of finalizer procedure definitions.
4
! Check that CONTAINS disallows further components and no double CONTAINS
5
! is allowed.
6
 
7
MODULE final_type
8
  IMPLICIT NONE
9
 
10
  TYPE :: mytype
11
    INTEGER, ALLOCATABLE :: fooarr(:)
12
    REAL :: foobar
13
  CONTAINS
14
  CONTAINS ! { dg-error "Already inside a CONTAINS block" }
15
    INTEGER :: x ! { dg-error "must precede CONTAINS" }
16
  END TYPE mytype
17
 
18
END MODULE final_type
19
 
20
PROGRAM finalizer
21
  IMPLICIT NONE
22
  ! Do nothing here
23
END PROGRAM finalizer
24
 
25
! { 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.